aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-codec
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-11-03 08:28:49 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-11-03 08:28:49 +0000
commitb13995d003e87df1fc6bfb06e913651f1a354c4c (patch)
treee2cbf05da862e662ae34d3cda6654f34529daa45 /java/jakarta-commons-codec
parent0861192de6f444f8176089faadcd1882b55b9816 (diff)
downloadports-b13995d003e87df1fc6bfb06e913651f1a354c4c.tar.gz
ports-b13995d003e87df1fc6bfb06e913651f1a354c4c.zip
Notes
Diffstat (limited to 'java/jakarta-commons-codec')
-rw-r--r--java/jakarta-commons-codec/Makefile47
-rw-r--r--java/jakarta-commons-codec/distinfo2
-rw-r--r--java/jakarta-commons-codec/files/patch-build.xml19
-rw-r--r--java/jakarta-commons-codec/pkg-descr7
4 files changed, 75 insertions, 0 deletions
diff --git a/java/jakarta-commons-codec/Makefile b/java/jakarta-commons-codec/Makefile
new file mode 100644
index 000000000000..517eadff5c8c
--- /dev/null
+++ b/java/jakarta-commons-codec/Makefile
@@ -0,0 +1,47 @@
+# Ports collection makefile for: Jakarta Commons Codec
+# Date created: 2 November 2005
+# Whom: Alex Dupre <ale@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= commons-codec
+PORTVERSION= 1.3
+CATEGORIES= java converters
+MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITE_SUBDIR= commons/codec/source
+PKGNAMEPREFIX= jakarta-
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= ale@FreeBSD.org
+COMMENT= An implementations of common encoders and decoders
+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+USE_ANT= yes
+
+NO_WRKSUBDIR= yes
+ALL_TARGET= dist
+
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= LICENSE.txt RELEASE-NOTES.txt api
+.endif
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
+ ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [DONE]"
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation..."
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/dist/docs && ${FIND} api \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
+ @${INSTALL_DATA} ${WRKSRC}/dist/LICENSE.txt ${WRKSRC}/dist/RELEASE-NOTES.txt \
+ ${DOCSDIR}/
+ @${ECHO_MSG} " [DONE]"
+.endif
+
+.include <bsd.port.mk>
diff --git a/java/jakarta-commons-codec/distinfo b/java/jakarta-commons-codec/distinfo
new file mode 100644
index 000000000000..5de41eb08958
--- /dev/null
+++ b/java/jakarta-commons-codec/distinfo
@@ -0,0 +1,2 @@
+MD5 (commons-codec-1.3-src.tar.gz) = ac19a5dc22b1293b39d0445ad08c4ce7
+SIZE (commons-codec-1.3-src.tar.gz) = 88242
diff --git a/java/jakarta-commons-codec/files/patch-build.xml b/java/jakarta-commons-codec/files/patch-build.xml
new file mode 100644
index 000000000000..536d56ee3749
--- /dev/null
+++ b/java/jakarta-commons-codec/files/patch-build.xml
@@ -0,0 +1,19 @@
+--- build.xml.orig Mon May 24 01:30:33 2004
++++ build.xml Thu Nov 3 07:59:01 2005
+@@ -90,14 +90,14 @@
+ </target>
+ <target name="dist" depends="compile,javadoc" description="Create binary distribution">
+ <mkdir dir="${dist.home}"/>
+- <copy file="../LICENSE" todir="${dist.home}"/>
++ <copy file="${basedir}/LICENSE.txt" todir="${dist.home}"/>
+ <copy file="${basedir}/RELEASE-NOTES.txt" todir="${dist.home}"/>
+ <antcall target="jar"/>
+ </target>
+ <target name="jar" depends="compile" description="Create jar">
+ <mkdir dir="${dist.home}"/>
+ <mkdir dir="${build.home}/classes/META-INF"/>
+- <copy file="../LICENSE" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
++ <copy file="${basedir}/LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+ <jar jarfile="${dist.home}/${final.name}.jar" basedir="${build.home}/classes" manifest="${build.home}/conf/MANIFEST.MF"/>
+ </target>
+ <target name="install-jar" depends="jar" description="--> Installs jar file in ${lib.repo}">
diff --git a/java/jakarta-commons-codec/pkg-descr b/java/jakarta-commons-codec/pkg-descr
new file mode 100644
index 000000000000..99413acc733f
--- /dev/null
+++ b/java/jakarta-commons-codec/pkg-descr
@@ -0,0 +1,7 @@
+Commons Codec provides implementations of common encoders and decoders
+such as Base64, Hex, various phonetic encodings, and URLs.
+
+WWW: http://jakarta.apache.org/commons/codec/
+
+- Alex Dupre
+ale@FreeBSD.org