diff options
author | ale <ale@FreeBSD.org> | 2005-11-03 16:28:49 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-11-03 16:28:49 +0800 |
commit | 9c4a7612560d88e25c4f633c3bdce35aa99dcf02 (patch) | |
tree | d41029e52a7eed97e300d462a5a319896b926ac6 | |
parent | 8750fcc39557e469cd4a1f2b24db01da28fb9bad (diff) | |
download | freebsd-ports-gnome-9c4a7612560d88e25c4f633c3bdce35aa99dcf02.tar.gz freebsd-ports-gnome-9c4a7612560d88e25c4f633c3bdce35aa99dcf02.tar.zst freebsd-ports-gnome-9c4a7612560d88e25c4f633c3bdce35aa99dcf02.zip |
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/
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/jakarta-commons-codec/Makefile | 47 | ||||
-rw-r--r-- | java/jakarta-commons-codec/distinfo | 2 | ||||
-rw-r--r-- | java/jakarta-commons-codec/files/patch-build.xml | 19 | ||||
-rw-r--r-- | java/jakarta-commons-codec/pkg-descr | 7 |
5 files changed, 76 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index ab38d8505c6d..0f2d601ec6f3 100644 --- a/java/Makefile +++ b/java/Makefile @@ -56,6 +56,7 @@ SUBDIR += jakarta-bcel SUBDIR += jakarta-commons-beanutils SUBDIR += jakarta-commons-cli + SUBDIR += jakarta-commons-codec SUBDIR += jakarta-commons-collections SUBDIR += jakarta-commons-dbcp SUBDIR += jakarta-commons-discovery 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 |