mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
java/jakarta-commons-collections:
- Add stage support - Drop unneeded JAVA_VERSION - Convert NOPORTDOCS to option - Clean up Makefile
This commit is contained in:
parent
66d4f99bd0
commit
4d2a6e6d62
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352579
@ -13,40 +13,28 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Classes that extend/augment the Java Collections Framework
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
|
||||
ALL_TARGET= jar
|
||||
.if !defined(NOPORTDOCS)
|
||||
ALL_TARGET+= javadoc
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
OTHERDOCS= DEVELOPERS-GUIDE.html LICENSE.txt PROPOSAL.html README.txt RELEASE-NOTES.html
|
||||
PORTDOCS= apidocs ${OTHERDOCS}
|
||||
.endif
|
||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||
DESTJARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES+= %%JAVAJARDIR%%/${DESTJARFILE}
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
|
||||
.if ${JDK_API} != ""
|
||||
MAKE_ARGS+= -Djavadoc.links=${JDK_API}
|
||||
.endif
|
||||
DOCS_ALL_TARGET= javadoc
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
||||
@${MKDIR} ${JAVAJARDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC}/build/docs && ${FIND} apidocs \
|
||||
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
||||
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
||||
@${ECHO_MSG} " [ DONE ]"
|
||||
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/build/docs && \
|
||||
${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
|
||||
${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user