From 4a5b2c81ea894a630d3f1829e79c0333baf07fdd Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 21 Jan 2014 07:47:58 +0000 Subject: [PATCH] Convert to staging. Sponsored by: Absolight --- textproc/dom4j/Makefile | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/textproc/dom4j/Makefile b/textproc/dom4j/Makefile index c1c41b61180f..c5068135660a 100644 --- a/textproc/dom4j/Makefile +++ b/textproc/dom4j/Makefile @@ -14,26 +14,17 @@ USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar -.if !defined(NOPORTDOCS) -PORTDOCS= * -.endif +OPTIONS_DEFINE= DOCS + +PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar + +PORTDOCS= * -NO_STAGE= yes do-install: - @${ECHO_MSG} -n ">> Installing JAR in ${JAVAJARDIR}..." - @cd ${WRKSRC} && \ - ${INSTALL_DATA} ${PORTNAME}-${PORTVERSION}.jar \ - ${JAVAJARDIR}/${PORTNAME}.jar - @${ECHO_MSG} " [ DONE ]" -.if !defined(NOPORTDOCS) - @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR} - @cd ${WRKSRC}/docs && ${FIND} . | \ - ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > \ - /dev/null 2>&1 - @${ECHO_MSG} " [ DONE ]" -.endif + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include