forked from Lainports/freebsd-ports
Stage support
This commit is contained in:
parent
ceb30e57ef
commit
ecba71fb96
1 changed files with 4 additions and 12 deletions
|
|
@ -15,22 +15,14 @@ USE_JAVA= yes
|
|||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= yes
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= javadocs AUTHORS ChangeLog LICENSE.txt README-license.txt README.txt
|
||||
.endif
|
||||
JARFILE= trove.jar
|
||||
PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
|
||||
@${INSTALL_DATA} ${WRKSRC}/lib/${JARFILE} ${JAVAJARDIR}/
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@cd ${WRKSRC} && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
|
||||
@cd ${WRKSRC} && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/lib/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue