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

PortSystem 1.0

name				commons-beanutils
version				1.7.0

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-BeanUtils
long_description	Commons-BeanUtils provides easy-to-use wrappers around the \
					Java reflection and introspection APIs.
homepage			http://jakarta.apache.org/commons/beanutils/
				
distfiles			${distname}-src${extract.suffix}

master_sites		apache:jakarta/commons/beanutils/source/
				
checksums			md5 3fd5cbdf70363b151de5cd538f726e67

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

worksrcdir 			${distname}-src

use_configure		no

build.cmd			ant
build.target		jar javadoc
build.args			-Dcommons-collections.jar=${prefix}/share/java/commons-collections.jar \
					-Dcommons-logging.jar=${prefix}/share/java/commons-logging.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}/dist/commons-beanutils-core.jar \
		${worksrcpath}/dist/commons-beanutils.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
}
