- Add staging support
- Convert to new options framework
This commit is contained in:
parent
9b7bbbe07d
commit
1dda6ea844
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355887
1 changed files with 12 additions and 17 deletions
|
@ -16,22 +16,22 @@ LICENSE= APACHE20
|
||||||
|
|
||||||
USE_JAVA= yes
|
USE_JAVA= yes
|
||||||
JAVA_VERSION= 1.6+
|
JAVA_VERSION= 1.6+
|
||||||
|
|
||||||
USE_ANT= yes
|
USE_ANT= yes
|
||||||
|
|
||||||
ALL_TARGET= jar
|
ALL_TARGET= jar
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
ALL_TARGET+= javadoc
|
|
||||||
PORTDOCS= *
|
|
||||||
.endif
|
|
||||||
|
|
||||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||||
DESTJARFILE= ${PORTNAME}.jar
|
DESTJARFILE= ${PORTNAME}.jar
|
||||||
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
||||||
|
PORTDOCS= *
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
|
ALL_TARGET+= javadoc
|
||||||
|
.endif
|
||||||
|
|
||||||
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
|
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} != ""
|
.if ${JDK_API} != ""
|
||||||
|
@ -39,16 +39,11 @@ MAKE_ARGS+= -Djdk.javadoc=${JDK_API}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} \
|
||||||
@${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
|
||||||
@${ECHO_MSG} " [ DONE ]"
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
|
(cd ${WRKSRC}/target/apidocs && ${COPYTREE_SHARE} . \
|
||||||
.if !defined(NOPORTDOCS)
|
${STAGEDIR}${DOCSDIR})
|
||||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
||||||
@cd ${WRKSRC}/target/apidocs \
|
|
||||||
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
||||||
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
||||||
@${ECHO_MSG} " [ DONE ]"
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Reference in a new issue