# $Id: Portfile,v 1.6 2006/01/03 01:42:33 jberry Exp $

PortSystem 1.0

name				commons-httpclient
version				3.0

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			Jakarta Commons-HttpClient
long_description	Commons-HttpClient provides a framework for working with \
					the client-side  of the HTTP protocol.
homepage			http://jakarta.apache.org/commons/httpclient/
				
distname			${name}-${version}-src
master_sites		apache:jakarta/commons/httpclient/source/
checksums			md5 e440ab39e3103f7e47adfaed17e365e3

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

use_configure		no

worksrcdir			${name}-${version}

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

post-extract	{
	file mkdir ${worksrcpath}/lib
}

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