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

Last change on this file since 72987 was 72987, checked in by ryandesign@…, 10 years ago

junit is noarch

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