source: trunk/dports/java/javatar/Portfile

Last change on this file was 112076, checked in by jmr@…, 4 years ago

javatar: uses jikes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 112076 2013-10-11 04:49:43Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    javatar
6version                 2.5
7categories              java archivers
8license                 public-domain
9platforms               darwin
10supported_archs noarch
11maintainers             nomaintainer
12description             java package that allows you to create and extract tar archives
13long_description        ${description}
14
15homepage                http://www.trustice.com/java/tar/
16master_sites    http://www.gjt.org/download/time/java/tar/
17checksums               md5 7dae3b92b70c30cfb6fd9699a79f821c
18
19depends_lib             port:gnu-classpath \
20                                port:gnu-classpathx-activation
21
22depends_build   bin:jikes:jikes
23
24use_configure   no
25
26set javad               ${prefix}/share/java
27
28build {
29        file mkdir ${worksrcpath}/build
30        system "cd ${worksrcpath}/source/ && \
31                find . -name \\*.java \
32                        -exec jikes -d ${worksrcpath}/build \
33                        -classpath .:${javad}/glibj.jar:${javad}/activation.jar \{\} \\;"
34        system "cd ${worksrcpath}/build && jar -cf ../javatar.jar com"
35}
36
37destroot {
38        xinstall -m 755 -d ${destroot}${javad} ${destroot}${prefix}/share/doc/
39        xinstall -m 644 ${worksrcpath}/javatar.jar ${destroot}${javad}
40        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
41}
Note: See TracBrowser for help on using the repository browser.