source: trunk/dports/java/commons-collections/Portfile

Last change on this file was 96266, checked in by jberry@…, 5 years ago

Use the new java portgroup to set the java JAVA_HOME, as the symlink at /System/Library/Frameworks/JavaVM.framework/Home no longer exists on Mountain Lion. We discover JAVA_HOME via /usr/libexec/java_home if it exists.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 96266 2012-08-06 19:52:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup java 1.0
5
6name                    commons-collections
7version                 3.2.1
8
9categories              java
10license                 Apache-2
11maintainers             blair openmaintainer
12platforms               darwin
13
14description             Jakarta Commons-Collections
15long_description        Commons-Collections provides a suite of classes that \
16                                extend or augment the Java Collections \
17                                Framework.
18homepage                http://commons.apache.org/collections/
19
20distfiles               ${distname}-src${extract.suffix}
21master_sites            apache:commons/collections/source/
22checksums               md5 031ce05872ddb0462f0dcce1e5babbe9 \
23                        sha1 6925f4a487d58538a4d3ef11d63aefdd66ee2405 \
24                        rmd160 850b2b710fb7811b71b0c347396ba55df3dc8e34
25
26worksrcdir              ${name}-${version}-src
27
28depends_build           bin:ant:apache-ant
29depends_lib             bin:java:kaffe \
30                                port:junit
31
32use_configure           no
33
34build.cmd               ant
35build.target            jar javadoc
36build.args              -Djar.name=${name}.jar \
37                                -Djunit.jar=${prefix}/share/java/junit.jar
38
39destroot        {
40        xinstall -m 755 -d ${destroot}${prefix}/share/java \
41                ${destroot}${prefix}/share/doc
42        xinstall -m 644 \
43                ${worksrcpath}/build/commons-collections.jar \
44                ${destroot}${prefix}/share/java/
45        file copy ${worksrcpath}/build/docs \
46                ${destroot}${prefix}/share/doc/${name}
47        file attributes ${destroot}${prefix}/share/doc/${name} \
48                -permissions goa+r
49}
50
51livecheck.type  regex
52livecheck.url   http://commons.apache.org/downloads/download_collections.cgi
53livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
Note: See TracBrowser for help on using the repository browser.