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

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

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

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