# $Id: Portfile 72252 2010-10-08 23:20:28Z jberry@macports.org $ PortSystem 1.0 name commons-httpclient version 3.1 categories java maintainers nomaintainer 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://hc.apache.org/httpcomponents-client distname ${name}-${version}-src master_sites apache:httpcomponents/commons-httpclient/source/ checksums md5 2c9b0f83ed5890af02c0df1c1776f39b 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} } livecheck.type regex livecheck.url http://hc.apache.org/downloads.cgi livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"