freebsd-ports/java/jakarta-commons-codec/Makefile
Dmitry Marakasov 13b394d6ef - Switch to options helpers
Approved by:	portmgr blanket
2015-12-08 18:33:24 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= commons-codec
PORTVERSION= 1.10
CATEGORIES= java converters
MASTER_SITES= APACHE_COMMONS_SOURCE
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ale@FreeBSD.org
COMMENT= Implementations of common encoders and decoders
LICENSE= APACHE20
OPTIONS_DEFINE= DOCS
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= dist
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} 's/1.9-SNAPSHOT/1.10/' ${WRKSRC}/default.properties
do-install:
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
do-install-DOCS-on:
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
@${INSTALL_DATA} ${WRKSRC}/dist/RELEASE-NOTES.txt \
${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
.include <bsd.port.mk>