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

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

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            commons-daemon
6version                         1.0.1
7
8categories                      java
9maintainers                     jberry openmaintainer
10platforms                       darwin
11
12description                     Jakarta Commons-Daemon
13long_description        An alternative invocation mechanism for unix-daemon-like \
14                                        java code.
15homepage                        http://commons.apache.org/daemon/
16
17distname                        daemon-${version}
18master_sites            apache:commons/daemon/source/
19checksums                       md5 df3eb5aafa53ca530843a09d40b8a1c0
20
21patchfiles                      patch-native-dso-dyld.c
22
23depends_build           bin:ant:apache-ant
24depends_lib                     bin:java:kaffe \
25                                        port:junit
26
27use_configure           no
28
29build {
30        # First build the java code
31        system "cd ${worksrcpath} && \
32                ant dist -Djunit.jar=${prefix}/share/java/junit.jar"           
33
34        # Then build the native code jsvc tool
35        system "cd ${worksrcpath}/src/native/unix && \
36                ./configure && make"
37}
38
39destroot {
40        xinstall -m 755 -d ${destroot}${prefix}/share/java \
41                ${destroot}${prefix}/share/doc \
42                ${destroot}${prefix}/bin
43        xinstall -m 644 ${worksrcpath}/dist/commons-daemon.jar \
44                ${destroot}${prefix}/share/java/
45        xinstall -m 755 ${worksrcpath}/src/native/unix/jsvc \
46                ${destroot}${prefix}/bin/
47        file copy ${worksrcpath}/dist/docs \
48                ${destroot}${prefix}/share/doc/${name}
49}
50
51livecheck.type  regex
52livecheck.url   http://commons.apache.org/downloads/download_daemon.cgi
53livecheck.regex "daemon-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"
Note: See TracBrowser for help on using the repository browser.