aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-collections/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2004-04-15 20:53:59 +0000
committerErnst de Haan <znerd@FreeBSD.org>2004-04-15 20:53:59 +0000
commit44aa7ae91143c0452a6481577945470810297bbf (patch)
tree1d98717a35c1cabdf814efaaf99b2c47d2016f42 /java/jakarta-commons-collections/Makefile
parent113bd2c5f49a2857ba716568611692e159460f6e (diff)
downloadports-44aa7ae91143c0452a6481577945470810297bbf.tar.gz
ports-44aa7ae91143c0452a6481577945470810297bbf.zip
Notes
Diffstat (limited to 'java/jakarta-commons-collections/Makefile')
-rw-r--r--java/jakarta-commons-collections/Makefile44
1 files changed, 27 insertions, 17 deletions
diff --git a/java/jakarta-commons-collections/Makefile b/java/jakarta-commons-collections/Makefile
index 0f82a6dc991b..fcd30cf17777 100644
--- a/java/jakarta-commons-collections/Makefile
+++ b/java/jakarta-commons-collections/Makefile
@@ -6,9 +6,10 @@
#
PORTNAME= commons-collections
-PORTVERSION= 2.1
+PORTVERSION= 3.0
CATEGORIES= java
-MASTER_SITES= http://jakarta.apache.org/builds/jakarta-commons/release/${PORTNAME}/v${PORTVERSION}/
+MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITE_SUBDIR= commons/collections/source/
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
@@ -17,32 +18,41 @@ COMMENT= Classes that extend/augment the Java Collections Framework
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
-USE_JAVA= 1.2+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-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
+ANT_TARGET= jar
+.if !defined(NOPORTDOCS)
+ANT_TARGET+= javadoc
+OTHERDOCS= DEVELOPERS-GUIDE.html LICENSE.txt PROPOSAL.html README.txt RELEASE-NOTES.html STATUS.html
+PORTDOCS= apidocs ${OTHERDOCS}
.endif
-JAVASHAREDIR= ${PREFIX}/share/java
-JARDIR= ${JAVASHAREDIR}/classes
-JARFILE= ${PORTNAME}.jar
+JARFILE= ${PORTNAME}-${PORTVERSION}.jar
+DESTJARFILE= ${PORTNAME}.jar
+PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE}
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
do-install:
- @${ECHO} -n ">> Installing JAR as ${JARDIR}/${JARFILE}..."
- @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/
- @${ECHO} " [ DONE ]"
+ @${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
+ @${MKDIR} ${JAVAJARDIR}
+ @${CP} ${WRKSRC}/build/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
+ @${ECHO_CMD} " [ DONE ]"
.if !defined(NOPORTDOCS)
- @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR}
- @${ECHO} " [ DONE ]"
+ @${CP} -r ${WRKSRC}/build/docs/apidocs ${DOCSDIR}
+ @${ECHO_CMD} -n " apidocs"
+.for DOCFILE in ${OTHERDOCS}
+ @${CP} ${WRKSRC}/${DOCFILE} ${DOCSDIR}
+ @${ECHO_CMD} -n " ${DOCFILE}"
+.endfor
+ @${ECHO_CMD} " [ DONE ]"
.endif
.include <bsd.port.mk>