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:
parent
e951e71296
commit
9c08a14ba3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355885
@ -24,24 +24,16 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||
DESTJARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= *
|
||||
DOC_FILES= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
||||
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@-${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${DOCSDIR}
|
||||
.for f in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
||||
.endfor
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/${JARFILE} \
|
||||
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
|
||||
RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user