1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Convert to staging.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-01-21 07:47:58 +00:00
parent 0c3af1c5af
commit 4a5b2c81ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340564

View File

@ -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 <bsd.port.mk>