source: trunk/dports/java/commons-daemon/Portfile @ 64734

Last change on this file since 64734 was 64734, checked in by nox@…, 10 years ago

Update commons-daemon to 1.0.2 and fix universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 64734 2010-03-15 13:13:19Z nox@macports.org $
2
3PortSystem 1.0
4
5name                            commons-daemon
6version                         1.0.2
7license             Apache-2.0
8
9categories                      java
10maintainers                     jberry openmaintainer
11platforms                       darwin
12
13description                     Jakarta Commons-Daemon
14long_description        An alternative invocation mechanism for unix-daemon-like \
15                                        java code.
16homepage                        http://commons.apache.org/daemon/
17
18distname                        ${name}-${version}-src
19master_sites            apache:commons/daemon/source/
20
21checksums           md5     a6c68eed204bc9f1ef3b77488edfcfeb \
22                    sha1    a4e7e267c6accfeae5226f3a64ad2d7bd19993d1 \
23                    rmd160  afad8e7608f342ea576efde374511e50d269ae84
24
25patchfiles                      patch-native-dso-dyld.c
26
27depends_build           bin:ant:apache-ant
28depends_lib                     bin:java:kaffe \
29                                        port:junit
30
31configure.dir       ${worksrcpath}/src/native/unix
32
33build.dir           ${configure.dir}
34build.target        clean all
35
36use_parallel_build  no
37
38pre-build {
39    system "cd ${worksrcpath} && \
40        ant dist -Djunit.jar=${prefix}/share/java/junit.jar"
41}
42
43destroot {
44    xinstall -d ${destroot}${prefix}/share/java \
45        ${destroot}${prefix}/share/doc
46    xinstall -m 644 ${worksrcpath}/dist/commons-daemon-${version}.jar \
47        ${destroot}${prefix}/share/java/commons-daemon.jar
48    xinstall ${worksrcpath}/src/native/unix/jsvc \
49        ${destroot}${prefix}/bin
50    set docdir ${prefix}/share/doc/${name}
51    file copy ${worksrcpath}/dist/docs ${destroot}${docdir}
52    xinstall -m 644 -W ${worksrcpath} LICENSE.txt NOTICE.txt PROPOSAL.html \
53        RELEASE-NOTES.txt ${destroot}${docdir}
54}
55
56livecheck.type  regex
57livecheck.url   http://commons.apache.org/downloads/download_daemon.cgi
58livecheck.regex {>(\d+(?:\.\d+)*)\.tar}
Note: See TracBrowser for help on using the repository browser.