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
ea02e52634
commit
ee648104e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355980
@ -13,31 +13,26 @@ COMMENT= Java library for arbitrary precision computations
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
ALL_TARGET= jar
|
||||
.else
|
||||
ALL_TARGET= jar apidocs
|
||||
.endif
|
||||
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
ALL_TARGET+= apidocs
|
||||
.endif
|
||||
|
||||
PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
|
||||
@${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${JAVAJARDIR}/${JARFILE}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC}/build/apidocs/ && ${FIND} . \
|
||||
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/build/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user