source: trunk/dports/java/junit/Portfile @ 52234

Last change on this file since 52234 was 52234, checked in by nox@…, 11 years ago

junit: Openmaintained.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 52234 2009-06-12 20:20:09Z nox@macports.org $
3
4PortSystem      1.0
5
6name            junit
7version         4.6
8revision        1
9categories      java devel
10platforms       darwin
11maintainers     nox openmaintainer
12description     Java framework for repeatable tests
13
14long_description \
15    JUnit is a simple framework to write repeatable tests. \
16    It is an instance of the xUnit architecture for unit \
17    testing frameworks.
18
19homepage        http://www.junit.org/
20master_sites    sourceforge
21distname        ${name}${version}
22use_zip         yes
23
24checksums       md5     2e59ed558001fd3b10d2146189167ff5 \
25                sha1    98c8c625e999f0c7463397a684a5c47a0ea106e3 \
26                rmd160  4f87024e91b7252af89ad925db5cda0e17128525
27
28patchfiles      patch-build.xml.diff \
29                patch-src-main-java-org-junit-matchers-package-info.java.diff \
30                patch-hamcrest-1.2-upgrade.diff
31
32post-extract {
33    file mkdir ${worksrcpath}/src/main/java
34    system "cd ${worksrcpath}/src/main/java && jar xvf ${worksrcpath}/${name}-${version}-src.jar"
35}
36
37
38depends_build   bin:ant:apache-ant
39depends_lib     port:hamcrest-core
40
41use_configure   no
42
43build.cmd       ant
44build.target    build
45build.args      -Dprefix=${prefix} \
46                -Dtestsrc=org/junit/tests \
47                -Ddist=.
48
49set docdir      ${prefix}/share/doc/${name}-${version}
50set javadir     ${prefix}/share/java
51set junitpkg    junit.jar
52
53destroot {
54    system "jar cvf ${worksrcpath}/${junitpkg} -C ${worksrcpath}/target/main ."
55    xinstall -d ${destroot}${javadir} ${destroot}${docdir}
56    xinstall -m 0644 ${worksrcpath}/${junitpkg} ${destroot}${javadir}
57    copy ${worksrcpath}/doc ${destroot}${docdir}/html
58}
59
60variant doc description {Install extra documentation} {
61    build.target-append javadoc
62   
63    post-destroot {
64        file copy ${worksrcpath}/javadoc ${destroot}${docdir}/
65    }
66}
67
68universal_variant   no
Note: See TracBrowser for help on using the repository browser.