aboutsummaryrefslogtreecommitdiffstats
path: root/java/jakarta-commons-pool
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2014-05-12 23:51:52 +0800
committerale <ale@FreeBSD.org>2014-05-12 23:51:52 +0800
commit92689c1352481dd9ba69582b8073ed1cda94c9e1 (patch)
treefbb14e13835b133a4be4910895255504837af849 /java/jakarta-commons-pool
parentcd6a4c2113310e7eb0570857353aaf43b8e0cb26 (diff)
downloadfreebsd-ports-gnome-92689c1352481dd9ba69582b8073ed1cda94c9e1.tar.gz
freebsd-ports-gnome-92689c1352481dd9ba69582b8073ed1cda94c9e1.tar.zst
freebsd-ports-gnome-92689c1352481dd9ba69582b8073ed1cda94c9e1.zip
Stagify.
Diffstat (limited to 'java/jakarta-commons-pool')
-rw-r--r--java/jakarta-commons-pool/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/java/jakarta-commons-pool/Makefile b/java/jakarta-commons-pool/Makefile
index f7e0104686bf..e42c516fd00e 100644
--- a/java/jakarta-commons-pool/Makefile
+++ b/java/jakarta-commons-pool/Makefile
@@ -12,30 +12,36 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ale@FreeBSD.org
COMMENT= Jakarta Object-pooling API
+LICENSE= APACHE20
+
+OPTIONS_DEFINE= DOCS
+
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= build-jar
-.if !defined(NOPORTDOCS)
-ALL_TARGET+= javadoc
-.endif
+
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
-PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+ALL_TARGET+= javadoc
+.endif
-NO_STAGE= yes
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
- ${JAVAJARDIR}/${PORTNAME}.jar
+ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
@${ECHO_MSG} " [ DONE ]"
.endif