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

PortSystem 1.0

name				commons-dbcp
version				1.2.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-DBCP
long_description	Commons-DBCP provides database connection pooling services.
homepage			http://jakarta.apache.org/commons/dbcp/
				
distname			${name}-${version}-src
master_sites		apache:jakarta/commons/dbcp/source/
checksums			md5 b7336a1d34ea0e8e9c39b67af510c46d

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

use_configure		no

worksrcdir			${name}-${version}

build.cmd			ant
build.target		dist
build.args			-Djunit.jar=${prefix}/share/java/junit.jar \
					-Dcommons-collections.jar=${prefix}/share/java/commons-collections.jar \
					-Dcommons-pool.jar=${prefix}/share/java/commons-pool.jar

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