# $Id: Portfile 96989 2012-08-23 20:25:50Z ciserlohn@macports.org $ PortSystem 1.0 PortGroup java 1.0 name commons-daemon version 1.0.10 license Apache-2 categories java maintainers nomaintainer platforms darwin description Jakarta Commons-Daemon long_description An alternative invocation mechanism for unix-daemon-like \ java code. homepage http://commons.apache.org/daemon/ distname ${name}-${version}-src master_sites apache:commons/daemon/source/ checksums rmd160 975d28ee016928842693e68d61e82cb5700975cf \ sha256 2b60b28523cbd28497a02a298a341c51cabbe45983ec9e93616e6c91fbb5280c patchfiles patch-native-dso-dyld.c \ patch-configure.diff depends_build bin:ant:apache-ant depends_lib bin:java:kaffe \ port:junit configure.dir ${worksrcpath}/src/native/unix platform macosx { pre-configure { if {![file isfile "/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} { ui_error "${name} requires the Java for Mac OS X development headers." if {${os.major} == 10} { ui_error "Download the Java Developer Package from: " } elseif {${os.major} == 9} { ui_error "Download the Java Developer Package from: " } else { ui_error "Make sure your Xcode installation is complete." } return -code error "missing Java headers" } } } build.dir ${configure.dir} build.target clean all use_parallel_build no pre-build { system -W ${worksrcpath} "JAVA_HOME=${java_home} ant dist -Djunit.jar=${prefix}/share/java/junit.jar" } destroot { xinstall -d ${destroot}${prefix}/share/java \ ${destroot}${prefix}/share/doc xinstall -m 644 ${worksrcpath}/dist/commons-daemon-${version}.jar \ ${destroot}${prefix}/share/java/commons-daemon.jar xinstall ${worksrcpath}/src/native/unix/jsvc \ ${destroot}${prefix}/bin set docdir ${prefix}/share/doc/${name} file copy ${worksrcpath}/dist/docs ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} LICENSE.txt NOTICE.txt PROPOSAL.html \ RELEASE-NOTES.txt ${destroot}${docdir} } livecheck.type regex livecheck.url http://commons.apache.org/downloads/download_daemon.cgi livecheck.regex {>(\d+(?:\.\d+)*)\.tar}