Skip to content
Permalink
Browse files

New port java/commons-codec

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15676 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Jan 3, 2006
1 parent 7c26d5a commit 387cd60f1d1b4b74a595a49350782c16bb5d1dd9
Showing with 45 additions and 0 deletions.
  1. +45 −0 java/commons-codec/Portfile
@@ -0,0 +1,45 @@
# $Id: Portfile,v 1.1 2006/01/03 01:33:35 jberry Exp $

PortSystem 1.0

name commons-codec
version 1.3

categories java
maintainers jberry@opendarwin.org
platforms darwin

description Jakarta Commons-Codec
long_description Commons Codec provides implementations of common encoders and \
decoders such as Base64, Hex, various phonetic encodings, and URLs.
homepage http://jakarta.apache.org/commons/codec/

distname ${name}-${version}-src
master_sites apache:jakarta/commons/codec/source/
checksums md5 ac19a5dc22b1293b39d0445ad08c4ce7

depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe \
port:junit

use_configure no

worksrcdir .

build.cmd ant
build.target dist
build.args -Dfinal.name=${name} \
-Djunit.jar=${prefix}/share/java/junit.jar

post-extract {
reinplace s|../LICENSE|./LICENSE.txt| ${worksrcpath}/build.xml
}

destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 \
${worksrcpath}/dist/${name}.jar \
${destroot}${prefix}/share/java/
file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
}

0 comments on commit 387cd60

Please sign in to comment.
You can’t perform that action at this time.