aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-03-31 23:23:14 +0800
committerpawel <pawel@FreeBSD.org>2014-03-31 23:23:14 +0800
commit6e77805f51d8ccd283ab1bd58cc502ab8ee48c3b (patch)
tree2e97d93f93e6f2a5d30dd91be87dc5eebee2cf40 /devel
parentcf4d60ef77c904d27510b113cc2101442961b920 (diff)
downloadfreebsd-ports-gnome-6e77805f51d8ccd283ab1bd58cc502ab8ee48c3b.tar.gz
freebsd-ports-gnome-6e77805f51d8ccd283ab1bd58cc502ab8ee48c3b.tar.zst
freebsd-ports-gnome-6e77805f51d8ccd283ab1bd58cc502ab8ee48c3b.zip
- Add staging support
- Define DOCS option
Diffstat (limited to 'devel')
-rw-r--r--devel/jakarta-commons-modeler/Makefile30
1 files 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 <bsd.port.pre.mk>
-
-.if !defined(NOPORTDOCS)
-PORTDOCS= *
-.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+PORTDOCS= *
-do-install:
- @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
- @${ECHO_MSG} " [ DONE ]"
+OPTIONS_DEFINE= DOCS
-.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
+do-install:
+ ${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})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>