# $Id: Portfile 99621 2012-11-12 11:32:47Z jmr@macports.org $ PortSystem 1.0 PortGroup java 1.0 name commons-fileupload version 1.2.2 categories java maintainers nomaintainer platforms darwin license Apache-2 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://commons.apache.org/fileupload/ distname ${name}-${version}-src master_sites apache:commons/fileupload/source/ checksums rmd160 c7cd2070b1397149445ec160ef9695b647cbbafc \ sha256 2f994b054b6514edd8d1bfe239db1dae5b7e581554d7c027c09d1b3afd832738 depends_build bin:ant:apache-ant depends_lib bin:java:kaffe \ port:junit \ port:servlet23-api use_configure no worksrcdir ${name}-${version}-src build.env-append CLASSPATH=${prefix}/share/java/servlet23-api.jar:${prefix}/share/java/junit.jar \ HOME=${workpath} 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} } livecheck.type regex livecheck.url http://commons.apache.org/downloads/download_fileupload.cgi livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"