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

Last change on this file since 84650 was 84650, checked in by jmr@…, 8 years ago

junit: license

  • 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 84650 2011-09-29 10:36:37Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            junit
7version         4.6
8revision        2
9categories      java devel
10license         CPL-1
11platforms       darwin
12maintainers     nomaintainer
13supported_archs noarch
14
15description     Java framework for repeatable tests
16
17long_description \
18    JUnit is a simple framework to write repeatable tests. \
19    It is an instance of the xUnit architecture for unit \
20    testing frameworks.
21
22homepage        http://www.junit.org/
23master_sites    sourceforge
24distname        ${name}${version}
25use_zip         yes
26
27checksums       md5     2e59ed558001fd3b10d2146189167ff5 \
28                sha1    98c8c625e999f0c7463397a684a5c47a0ea106e3 \
29                rmd160  4f87024e91b7252af89ad925db5cda0e17128525
30
31patchfiles      patch-build.xml.diff \
32                patch-src-main-java-org-junit-matchers-package-info.java.diff \
33                patch-hamcrest-1.2-upgrade.diff
34
35post-extract {
36    file mkdir ${worksrcpath}/src/main/java
37    system "cd ${worksrcpath}/src/main/java && jar xvf ${worksrcpath}/${name}-${version}-src.jar"
38}
39
40
41depends_build   bin:ant:apache-ant
42depends_lib     port:hamcrest-core
43
44use_configure   no
45
46build.cmd       ant
47build.target    build
48build.args      -Dprefix=${prefix} \
49                -Dtestsrc=org/junit/tests \
50                -Ddist=.
51
52set docdir      ${prefix}/share/doc/${name}-${version}
53set javadir     ${prefix}/share/java
54set junitpkg    junit.jar
55
56destroot {
57    system "jar cvf ${worksrcpath}/${junitpkg} -C ${worksrcpath}/target/main ."
58    xinstall -d ${destroot}${javadir} ${destroot}${docdir}
59    xinstall -m 0644 ${worksrcpath}/${junitpkg} ${destroot}${javadir}
60    copy ${worksrcpath}/doc ${destroot}${docdir}/html
61}
62
63variant doc description {Install extra documentation} {
64    build.target-append javadoc
65   
66    post-destroot {
67        file copy ${worksrcpath}/javadoc ${destroot}${docdir}/
68    }
69}
Note: See TracBrowser for help on using the repository browser.