# $Id$ PortSystem 1.0 PortGroup java 1.0 name commons-dbcp version 1.2.2 categories java license Apache-2 maintainers nomaintainer platforms darwin description Jakarta Commons-DBCP long_description Commons-DBCP provides database connection pooling services. homepage http://commons.apache.org/dbcp/ distname ${name}-${version}-src master_sites apache:commons/dbcp/source/ checksums md5 57bad7d2abfaa175c743521caccdbd8f depends_build bin:ant:apache-ant depends_lib bin:java:kaffe \ port:junit \ port:commons-collections \ port:commons-pool use_configure no worksrcdir ${name}-${version}-src build.cmd ant build.target dist build.args -Djunit.jar=${prefix}/share/java/junit.jar \ -Dcommons-collections.jar=${prefix}/share/java/commons-collections.jar \ -Dcommons-pool.jar=${prefix}/share/java/commons-pool.jar destroot { xinstall -m 755 -d ${destroot}${prefix}/share/java \ ${destroot}${prefix}/share/doc xinstall -m 644 \ ${worksrcpath}/dist/commons-dbcp.jar \ ${destroot}${prefix}/share/java/ file copy ${worksrcpath}/dist/docs ${destroot}${prefix}/share/doc/${name} file attributes ${destroot}${prefix}/share/doc/${name} -permissions goa+r } platform darwin { if {${os.major} >= 10} { build.args-append -Djavac.source=5 patchfiles-append patch-JDK-1.6.diff } } livecheck.type regex livecheck.url http://commons.apache.org/downloads/download_dbcp.cgi livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"