1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name commons-daemon |
---|
6 | version 1.0 |
---|
7 | |
---|
8 | categories java |
---|
9 | maintainers james@jberry.us |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Jakarta Commons-Daemon |
---|
13 | long_description An alternative invocation mechanism for unix-daemon-like java code. |
---|
14 | homepage http://jakarta.apache.org/commons/daemon/ |
---|
15 | |
---|
16 | distname daemon-${version} |
---|
17 | master_sites apache:jakarta/commons/daemon/source/ |
---|
18 | checksums md5 3054786aaba9631ec04fef0862023bc8 |
---|
19 | |
---|
20 | patchfiles patch-native-configure.in.diff \ |
---|
21 | patch-native-configure.diff \ |
---|
22 | patch-native-java.c.diff \ |
---|
23 | patch-native-jsvc-unix.c.diff |
---|
24 | |
---|
25 | depends_build bin:ant:apache-ant |
---|
26 | depends_lib bin:java:kaffe \ |
---|
27 | lib:XXX:junit |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build { |
---|
32 | # First build the java code |
---|
33 | system "cd ${worksrcpath} && \ |
---|
34 | ant dist -Djunit.jar=${prefix}/share/java/junit.jar" |
---|
35 | |
---|
36 | # Then build the native code jsvc tool |
---|
37 | system "cd ${worksrcpath}/src/native/unix && \ |
---|
38 | ./configure && make" |
---|
39 | } |
---|
40 | |
---|
41 | destroot { |
---|
42 | xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
---|
43 | ${destroot}${prefix}/share/doc \ |
---|
44 | ${destroot}${prefix}/bin |
---|
45 | xinstall -m 644 ${worksrcpath}/dist/commons-daemon.jar \ |
---|
46 | ${destroot}${prefix}/share/java/ |
---|
47 | xinstall -m 755 ${worksrcpath}/src/native/unix/jsvc \ |
---|
48 | ${destroot}${prefix}/bin/ |
---|
49 | file copy ${worksrcpath}/dist/docs \ |
---|
50 | ${destroot}${prefix}/share/doc/${name} |
---|
51 | } |
---|