# $Id: Portfile,v 1.1 2006/01/28 00:35:50 jberry Exp $

PortSystem 1.0

name				commons-io
version				1.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-IO
long_description	Commons IO is a library of utilities to assist with developing IO functionality \
					from Java.

distname			${name}-${version}-src
master_sites		apache:jakarta/commons/io/source/
checksums			md5 0a39b54885b86dc42169ffd761caf414

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

use_configure		no

build.env			CLASSPATH=${prefix}/share/java/junit.jar
build.cmd			ant
build.target		dist
build.args			-Dfinal.name=${name}

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
	xinstall -m 644 ${worksrcpath}/build/${name}.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/xdocs ${destroot}${prefix}/share/doc/${name}
}
