# $Id: Portfile,v 1.5 2006/01/03 01:43:23 jberry Exp $

PortSystem 1.0

name				commons-fileupload
version				1.1

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-FileUpload
long_description	FileUpload makes it easy to add robust, high-performance, file \
					upload  capability to your servlets and web applications.
homepage			http://jakarta.apache.org/commons/fileupload/

distname			${name}-${version}-src
master_sites		apache:jakarta/commons/fileupload/source/
checksums			md5 7076fd3032fc28436515bac0374813a9

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

use_configure		no

worksrcdir			${name}-${version}

build.env			CLASSPATH=${prefix}/share/java/servlet23-api.jar:${prefix}/share/java/junit.jar
build.cmd			ant
build.target		dist
build.args			-Dfinal.name=${name} \
					-Dnoget=true

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
	xinstall -m 644 ${worksrcpath}/dist/commons-fileupload.jar \
		${destroot}${prefix}/share/java/
	file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name}
}
