mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
- Add staging support
- Define DOCS option
This commit is contained in:
parent
b2fa532046
commit
b7f949f9b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349764
@ -16,28 +16,16 @@ 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} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
|
||||
RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
||||
@cd ${WRKSRC}/docs \
|
||||
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/docs/{} \; \
|
||||
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/docs/{} \;
|
||||
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
|
||||
@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}/
|
||||
@${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES.txt ${DOCSDIR}/
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user