From 566d8aa9013ed8e1fe362e9332613e7041b5da64 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Mon, 31 Mar 2014 15:11:19 +0000 Subject: [PATCH] - Add staging support - Define DOCS option --- devel/jakarta-commons-jxpath/Makefile | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/devel/jakarta-commons-jxpath/Makefile b/devel/jakarta-commons-jxpath/Makefile index 4e897bde5d49..1602d22b3c2b 100644 --- a/devel/jakarta-commons-jxpath/Makefile +++ b/devel/jakarta-commons-jxpath/Makefile @@ -16,25 +16,15 @@ USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes -NO_STAGE= yes -.include - -.if !defined(NOPORTDOCS) -PORTDOCS= * -.endif PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar +PORTDOCS= * + +OPTIONS_DEFINE= DOCS do-install: - @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." - @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar - @${ECHO_MSG} " [ DONE ]" + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + (cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/apidocs && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) -.if !defined(NOPORTDOCS) - @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..." - @cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/apidocs \ - && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; - @${ECHO_MSG} " [ DONE ]" -.endif - -.include +.include