- Add staging support

- Remove leading article from COMMENT
This commit is contained in:
Pawel Pekala 2014-03-31 15:09:23 +00:00
parent 4aa667ca2d
commit b402fc9b01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349761

View file

@ -10,14 +10,12 @@ PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= A collection of I/O utilities for Java
COMMENT= Collection of I/O utilities for Java
LICENSE= APACHE20
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
OPTIONS_DEFINE= DOCS
ALL_TARGET= dist
JAVA_VERSION= 1.6+
MAKE_ARGS= -cp ${JAVALIBDIR}/junit.jar
@ -29,7 +27,8 @@ PORTDOCS= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt apidocs
JAR_VERSION= ${PORTNAME}-2.2-SNAPSHOT
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@ -37,14 +36,12 @@ ALL_TARGET+= javadoc
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
${INSTALL_DATA} ${WRKSRC}/target/${JAR_VERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
${INSTALL_DATA} ${WRKSRC}/target/${JAR_VERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation..."
cd ${WRKSRC}/target/ && ${COPYTREE_SHARE} apidocs ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
(cd ${WRKSRC}/target && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>