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

Last change on this file since 19406 was 19406, checked in by jberry@…, 13 years ago

Update to my @macports email address in all my ports

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# $Id: Portfile,v 1.6 2005/05/25 03:20:35 jberry Exp $
2
3PortSystem 1.0
4
5name                            commons-daemon
6version                         1.0.1
7
8categories                      java
9maintainers                     jberry@macports.org
10platforms                       darwin
11
12description                     Jakarta Commons-Daemon
13long_description        An alternative invocation mechanism for unix-daemon-like \
14                                        java code.
15homepage                        http://jakarta.apache.org/commons/daemon/
16
17distname                        daemon-${version}
18master_sites            apache:jakarta/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}
Note: See TracBrowser for help on using the repository browser.