aboutsummaryrefslogtreecommitdiff
path: root/devel/java-util-concurrent
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-03-31 16:09:32 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-03-31 16:09:32 +0000
commit1f849d9e11a343abec79b9ca7e3540a7b7fae551 (patch)
tree0dfa7283fe0201cef1f944d92395adf44aa1b0a9 /devel/java-util-concurrent
parent9343451689799d32c54b2e67068fac40f2051160 (diff)
downloadports-1f849d9e11a343abec79b9ca7e3540a7b7fae551.tar.gz
ports-1f849d9e11a343abec79b9ca7e3540a7b7fae551.zip
Notes
Diffstat (limited to 'devel/java-util-concurrent')
-rw-r--r--devel/java-util-concurrent/Makefile34
-rw-r--r--devel/java-util-concurrent/pkg-descr2
2 files changed, 16 insertions, 20 deletions
diff --git a/devel/java-util-concurrent/Makefile b/devel/java-util-concurrent/Makefile
index 13d9adee9104..c92d9a0faa29 100644
--- a/devel/java-util-concurrent/Makefile
+++ b/devel/java-util-concurrent/Makefile
@@ -17,30 +17,26 @@ JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= dist
-.if !defined(NOPORTDOCS)
-ALL_TARGET+= javadoc
-.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
-.if !defined(NOPORTDOCS)
PORTDOCS= apidocs index.html
-.endif
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+ALL_TARGET+= javadoc
+.endif
do-install:
- @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
- @${MKDIR} ${JAVAJARDIR}
- @${INSTALL_DATA} ${WRKSRC}/lib/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
- @${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
- @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
- @cd ${WRKSRC}/docs \
- && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/apidocs/{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/apidocs/{} \;
- @${INSTALL_DATA} ${WRKSRC}/intro.html ${DOCSDIR}/index.html
- @${ECHO_MSG} " [ DONE ]"
+ @${MKDIR} ${STAGEDIR}${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/${DISTNAME}.jar \
+ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/apidocs
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/apidocs)
+ ${INSTALL_DATA} ${WRKSRC}/intro.html ${STAGEDIR}${DOCSDIR}/index.html
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/java-util-concurrent/pkg-descr b/devel/java-util-concurrent/pkg-descr
index 8a08058187bb..24758d8d388a 100644
--- a/devel/java-util-concurrent/pkg-descr
+++ b/devel/java-util-concurrent/pkg-descr
@@ -16,4 +16,4 @@ Plus some utilities and frameworks that build upon these.
This package was the precursor to java.util.concurrent.
-WWW: http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
+WWW: http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html