summaryrefslogtreecommitdiff
path: root/java/apache-commons-codec
diff options
context:
space:
mode:
Diffstat (limited to 'java/apache-commons-codec')
-rw-r--r--java/apache-commons-codec/Makefile43
-rw-r--r--java/apache-commons-codec/distinfo3
-rw-r--r--java/apache-commons-codec/pkg-descr4
3 files changed, 50 insertions, 0 deletions
diff --git a/java/apache-commons-codec/Makefile b/java/apache-commons-codec/Makefile
new file mode 100644
index 000000000000..ae091a53070b
--- /dev/null
+++ b/java/apache-commons-codec/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME= commons-codec
+PORTVERSION= 1.13
+CATEGORIES= java converters
+MASTER_SITES= APACHE_COMMONS_BINARIES
+PKGNAMEPREFIX= apache-
+DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
+
+MAINTAINER= ale@FreeBSD.org
+COMMENT= Implementations of common encoders and decoders
+
+LICENSE= APACHE20
+
+OPTIONS_DEFINE= DOCS
+
+USE_JAVA= yes
+JAVA_VERSION= 8+
+NO_BUILD= yes
+NO_ARCH= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+
+PORTDOCS= *
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
+ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [DONE]"
+
+do-install-DOCS-on:
+ @${ECHO_MSG} -n ">> Installing documentation..."
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC} && ${FIND} apidocs \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
+ @${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES.txt \
+ ${STAGEDIR}${DOCSDIR}/
+ @${ECHO_MSG} " [DONE]"
+
+.include <bsd.port.mk>
diff --git a/java/apache-commons-codec/distinfo b/java/apache-commons-codec/distinfo
new file mode 100644
index 000000000000..ab606c63fe3c
--- /dev/null
+++ b/java/apache-commons-codec/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1569852655
+SHA256 (commons-codec-1.13-bin.tar.gz) = 3469049d54f1fee98151a53e047d19ae333490a09eebd6de7465bdec9df589a0
+SIZE (commons-codec-1.13-bin.tar.gz) = 2162512
diff --git a/java/apache-commons-codec/pkg-descr b/java/apache-commons-codec/pkg-descr
new file mode 100644
index 000000000000..c3b17a96cc20
--- /dev/null
+++ b/java/apache-commons-codec/pkg-descr
@@ -0,0 +1,4 @@
+Commons Codec provides implementations of common encoders and decoders
+such as Base64, Hex, various phonetic encodings, and URLs.
+
+WWW: https://commons.apache.org/codec/