diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2002-10-18 20:38:12 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2002-10-18 20:38:12 +0000 |
commit | 11a89ad5c6d0d577a170376ad922350e7adb22b3 (patch) | |
tree | cbe4baacc606c83f149367be1dbd2591927be352 /java/jakarta-commons-collections/Makefile | |
parent | Update to 2.1 (diff) |
New port: Jakarta Commons Collections.
See:
http://jakarta.apache.org/commons/collections.html
Notes
Notes:
svn path=/head/; revision=68280
Diffstat (limited to 'java/jakarta-commons-collections/Makefile')
-rw-r--r-- | java/jakarta-commons-collections/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/java/jakarta-commons-collections/Makefile b/java/jakarta-commons-collections/Makefile new file mode 100644 index 000000000000..32986888b885 --- /dev/null +++ b/java/jakarta-commons-collections/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: Jakarta Commons Collections +# Date created: October 18, 2002 +# Whom: Ernst de Haan <znerd@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= commons-collections +PORTVERSION= 2.0 +CATEGORIES= java +MASTER_SITES= http://jakarta.apache.org/builds/jakarta-commons/release/${PORTNAME}/v${PORTVERSION}/ +PKGNAMEPREFIX= jakarta- +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= znerd@FreeBSD.org + +BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant + +USE_JAVA= 1.2+ + +PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} +ANT?= ${LOCALBASE}/bin/ant +.if defined(NOPORTDOCS) +ANT_TARGET= dist-jar +.else +ANT_TARGET= dist-jar doc-javadoc +.endif +JAVASHAREDIR= ${PREFIX}/share/java +JARDIR= ${JAVASHAREDIR}/classes +JARFILE= ${PORTNAME}.jar + +do-build: + @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} + +do-install: + @${ECHO} -n ">> Installing JAR as ${JARDIR}/${JARFILE}..." + @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/ + @${ECHO} " [ DONE ]" + +.if !defined(NOPORTDOCS) + @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." + ${MKDIR} ${DOCSDIR} + ${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR} + @${ECHO} " [ DONE ]" +.endif + +.include <bsd.port.mk> |