aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-05-31 02:02:03 +0800
committerpawel <pawel@FreeBSD.org>2014-05-31 02:02:03 +0800
commitabb6223546abe0d0046844da79f7bd899ffdd3b9 (patch)
tree202c33818c410ee620b048a308bb6691bf9298d3 /java
parentfdc57b705f784505c805d4d4ccb25a4e3bc3c123 (diff)
downloadfreebsd-ports-gnome-abb6223546abe0d0046844da79f7bd899ffdd3b9.tar.gz
freebsd-ports-gnome-abb6223546abe0d0046844da79f7bd899ffdd3b9.tar.zst
freebsd-ports-gnome-abb6223546abe0d0046844da79f7bd899ffdd3b9.zip
- Add staging support
- Convert to new options framework
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-commons-cli/Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/java/jakarta-commons-cli/Makefile b/java/jakarta-commons-cli/Makefile
index a252584de3d5..f2b8ef5da209 100644
--- a/java/jakarta-commons-cli/Makefile
+++ b/java/jakarta-commons-cli/Makefile
@@ -24,24 +24,16 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
-.if !defined(NOPORTDOCS)
PORTDOCS= *
-DOC_FILES= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
-.endif
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
do-install:
- @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
- @${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
- @${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
- @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- @-${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${DOCSDIR}
-.for f in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
-.endfor
- @${ECHO_MSG} " [ DONE ]"
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/${JARFILE} \
+ ${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
+ RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>