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

- Add staging support

- Convert to new options framework
This commit is contained in:
Pawel Pekala 2014-05-30 17:14:44 +00:00
parent d5df0fe022
commit c5bf39abc1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355875

View File

@ -21,23 +21,19 @@ PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \
# has a potential conflict with devel/looks, both install a looksXXX.jar
###
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-build:
cd ${WRKDIR}/build && \
${JAR} cmf ${WRKSRC}/${PORTNAME}.manifest \
${WRKDIR}/build/${PORTNAME}.jar *
do-install:
${INSTALL_DATA} ${WRKDIR}/build/${PORTNAME}.jar ${JAVAJARDIR}
${INSTALL_DATA} ${WRKDIR}/lib/looks-2.0.1.jar ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKDIR}/doc && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKDIR}/build/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKDIR}/lib/looks-2.0.1.jar ${STAGEDIR}${JAVAJARDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>