1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Add staging support

- Define DOCS option
This commit is contained in:
Pawel Pekala 2014-03-31 15:11:19 +00:00
parent b402fc9b01
commit 566d8aa901
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349762

View File

@ -16,25 +16,15 @@ 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= *
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 <bsd.port.post.mk>
.include <bsd.port.mk>