aboutsummaryrefslogtreecommitdiff
path: root/textproc/jakarta-commons-digester/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/jakarta-commons-digester/Makefile')
-rw-r--r--textproc/jakarta-commons-digester/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/textproc/jakarta-commons-digester/Makefile b/textproc/jakarta-commons-digester/Makefile
index e9590b6081d4..f5d19f10757b 100644
--- a/textproc/jakarta-commons-digester/Makefile
+++ b/textproc/jakarta-commons-digester/Makefile
@@ -31,10 +31,11 @@ ALL_TARGET= dist
JARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
-.if !defined(NOPORTDOCS)
+
+OPTIONS_DEFINE= DOCS
+
OTHERDOCS= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
PORTDOCS= api ${OTHERDOCS}
-.endif
COMMONS_BEANUTILS_API= ${LOCALBASE}/share/doc/commons-beanutils
COMMONS_COLLECTIONS_API=${LOCALBASE}/share/doc/commons-collections/apidocs
@@ -67,7 +68,7 @@ do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
@${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${JARFILE}
@${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@cd ${WRKSRC}/dist/docs \
&& ${FIND} api -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \