diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2004-11-28 17:02:58 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2004-11-28 17:02:58 +0000 |
commit | 2094cd25c1fc9988de9fcc9b97d8301a0e56ec0f (patch) | |
tree | 039cd7b4725b95b8bd0c801072f74623ac790d6e /java/jakarta-commons-cli | |
parent | beaccb88a3f414817c93fb847e77cfbd09711afb (diff) | |
download | ports-2094cd25c1fc9988de9fcc9b97d8301a0e56ec0f.tar.gz ports-2094cd25c1fc9988de9fcc9b97d8301a0e56ec0f.zip |
Notes
Diffstat (limited to 'java/jakarta-commons-cli')
-rw-r--r-- | java/jakarta-commons-cli/Makefile | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/java/jakarta-commons-cli/Makefile b/java/jakarta-commons-cli/Makefile index 9f4350c8d49b..e6bae49aff9d 100644 --- a/java/jakarta-commons-cli/Makefile +++ b/java/jakarta-commons-cli/Makefile @@ -8,53 +8,51 @@ PORTNAME= commons-cli PORTVERSION= 1.0 PORTEPOCH= 1 -CATEGORIES= java +CATEGORIES= java devel MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} -MASTER_SITE_SUBDIR= commons/cli/source +MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/source PKGNAMEPREFIX= jakarta- DISTNAME= cli-${PORTVERSION}-src MAINTAINER= znerd@FreeBSD.org COMMENT= Java library for command line arguments and options -BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \ - ${LOCALBASE}/share/java/classes/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang +BUILD_DEPENDS= ${JAVALIBDIR}/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang USE_JAVA= yes JAVA_VERSION= 1.2+ + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -ANT?= ${LOCALBASE}/bin/ant -.if defined(NOPORTDOCS) -ANT_TARGET= jar -Dnoget -.else -ANT_TARGET= jar javadoc -Dnoget -verbose +USE_ANT= yes +MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES +MAKE_ARGS= -Dnoget=yes +ALL_TARGET= jar +.if !defined(NOPORTDOCS) +ALL_TARGET+= javadoc .endif -JAVASHAREDIR= ${PREFIX}/share/java -JARDIR= ${JAVASHAREDIR}/classes + JARFILE= ${PORTNAME}-${PORTVERSION}-beta-2-dev.jar DESTJARFILE= ${PORTNAME}.jar -PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE} - +PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE} .if !defined(NOPORTDOCS) PORTDOCS= apidocs LICENSE.txt .endif -do-build: +post-extract: @${MKDIR} ${WRKSRC}/lib - @cd ${WRKSRC} && ${SETENV} ANT_INCLUDE_SHARED_JARS=YES ${ANT} ${ANT_TARGET} do-install: - @${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..." - @${CP} ${WRKSRC}/target/${JARFILE} ${JARDIR}/${DESTJARFILE} - @${ECHO} " [ DONE ]" - + @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..." + @${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} + @${ECHO_MSG} " [ DONE ]" .if !defined(NOPORTDOCS) - @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." - @${MKDIR} ${DOCSDIR} - @${CP} -r ${WRKSRC}/target/docs/apidocs ${DOCSDIR}/ - @${CP} -r ${WRKSRC}/LICENSE.txt ${DOCSDIR}/ - @${ECHO} " [ DONE ]" + @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." + @cd ${WRKSRC}/target/docs \ + && ${FIND} apidocs -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ + && ${FIND} apidocs -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; + @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/ + @${ECHO_MSG} " [ DONE ]" .endif .include <bsd.port.mk> |