source: trunk/dports/java/commons-pool/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-pool
7version                 1.5.4
8
9categories              java
10license                 Apache-2
11maintainers             nomaintainer
12platforms               darwin
13
14description             Jakarta Commons-Pool
15long_description        Commons-Pool provides a generic object pooling \
16                                interface, a toolkit for creating modular \
17                                object pools and several general purpose \
18                                pool implementations.
19homepage                http://commons.apache.org/pool/
20
21distname                ${name}-${version}-src
22master_sites            apache:commons/pool/source/
23
24checksums       md5     4216bb6eca49e7b3db9f287d7b0c0cd8 \
25                sha1    18279249c27fee5bdedeaff169b9d1b70d135839 \
26                rmd160  bb72683ef378e6e6741e6c6eea93b6077571edec
27
28depends_build           bin:ant:apache-ant
29depends_lib             bin:java:kaffe \
30                                port:junit
31
32use_configure           no
33
34worksrcdir              ${name}-${version}-src
35
36build.cmd               ant
37build.target            dist
38build.args              -Djunit.jar=${prefix}/share/java/junit.jar
39
40destroot        {
41        xinstall -d ${destroot}${prefix}/share/java \
42                ${destroot}${prefix}/share/doc
43        xinstall -m 644 ${worksrcpath}/dist/commons-pool.jar \
44                ${destroot}${prefix}/share/java/commons-pool.jar
45        file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
46        file attributes ${destroot}${prefix}/share/doc/${name} -permissions goa+r
47}
48
49livecheck.type  regex
50livecheck.url   http://commons.apache.org/downloads/download_pool.cgi
51livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
Note: See TracBrowser for help on using the repository browser.