# $Id: Portfile,v 1.4 2005/04/19 18:15:04 jberry Exp $

PortSystem 1.0

name				commons-collections
version				3.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-Collections
long_description	Commons-Collections provides a suite of classes that \
					extend or augment the Java Collections Framework.
homepage			http://jakarta.apache.org/commons/collections/
				
distfiles			${distname}-src${extract.suffix}
master_sites		apache:jakarta/commons/collections/source/
checksums			md5 2da710d9c81ae85ee3a386e7ed1b1fe8

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:junit

use_configure		no

build.cmd			ant
build.target		jar javadoc
build.args			-Djar.name=${name}.jar \
					-Djunit.jar=${prefix}/share/java/junit.jar

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
	xinstall -m 644 \
		${worksrcpath}/build/commons-collections.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/build/docs ${destroot}${prefix}/share/doc/${name}
	file attributes ${destroot}${prefix}/share/doc/${name} -permissions goa+r
}
