source: trunk/dports/java/commons-codec/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.3 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-codec
7version                         1.4
8
9categories                      java
10license                         Apache-2
11maintainers                     nomaintainer
12platforms                       darwin
13
14description                     Jakarta Commons-Codec
15long_description        Commons Codec provides implementations of common encoders and \
16                                        decoders such as Base64, Hex, various phonetic encodings, and URLs.
17homepage                        http://commons.apache.org/codec/
18                               
19distname                        ${name}-${version}-src
20master_sites            apache:commons/codec/source/
21
22checksums           md5     6d96f8134e12cdab105d4934b90cb993 \
23                    sha1    61edf10e2a95bdef49d04fdbb97783be8e2b114a \
24                    rmd160  b00969ab4bf8004d87e97b91072f4379590e62ea
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            dist
34build.args                      -Dfinal.name=${name} \
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}/dist/${name}.jar \
42                ${destroot}${prefix}/share/java/
43        file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
44}
45
46livecheck.type  regex
47livecheck.url   http://commons.apache.org/downloads/download_codec.cgi
48livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
Note: See TracBrowser for help on using the repository browser.