From b7f949f9b98a876bef97097f387b0933aea3cd61 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Mon, 31 Mar 2014 15:23:14 +0000 Subject: [PATCH] - Add staging support - Define DOCS option --- devel/jakarta-commons-modeler/Makefile | 30 ++++++++------------------ 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/devel/jakarta-commons-modeler/Makefile b/devel/jakarta-commons-modeler/Makefile index 4db02dde081d..24834ac51ec3 100644 --- a/devel/jakarta-commons-modeler/Makefile +++ b/devel/jakarta-commons-modeler/Makefile @@ -16,28 +16,16 @@ 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} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar - @${ECHO_MSG} " [ DONE ]" + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + (cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}) + (cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \ + RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR}) -.if !defined(NOPORTDOCS) - @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..." - @cd ${WRKSRC}/docs \ - && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/docs/{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/docs/{} \; - @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/ - @${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}/ - @${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES.txt ${DOCSDIR}/ - @${ECHO_MSG} " [ DONE ]" -.endif - -.include +.include