source: trunk/dports/java/proguard/Portfile @ 34059

Last change on this file since 34059 was 34059, checked in by blair@…, 12 years ago

proguard: trim trailing whitespace.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 34059 2008-02-11 18:41:42Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    proguard
6version                 4.1
7revision                1
8categories              java
9maintainers             blair
10
11description             Java bytecode shrinker, optimizer, and obfuscator.
12long_description        ProGuard is a free Java class file shrinker, \
13                        optimizer, obfuscator, and preverifier.  It detects \
14                        and removes unused classes, fields, methods, and \
15                        attributes.  It optimizes bytecode and removes \
16                        unused instructions.  It renames the remaining \
17                        classes, fields, and methods using short \
18                        meaningless names.  Finally, it preverifies the \
19                        processed code for Java 6 or for Java Micro Edition.
20homepage                http://proguard.sourceforge.net/
21
22master_sites            sourceforge
23distname                ${name}${version}
24checksums               md5 ad1f206413f90c443a1d4830ba23de13 \
25                        sha1 860201ceb4f23136ef7546353a0b3e514996e224 \
26                        rmd160 a56916316b6811dec3e29aab1c4a799e4052dbf6
27
28depends_lib             bin:java:kaffe
29
30use_configure           no
31
32build.cmd               true
33
34destroot {
35        set javadir ${destroot}${prefix}/share/java
36        set docdir ${destroot}${prefix}/share/doc/${name}
37
38        xinstall -d -m 755 ${javadir}
39        xinstall -d -m 755 ${docdir}
40
41        foreach f [glob -directory ${worksrcpath}/lib *.jar] {
42                file copy ${f} ${javadir}/
43        }
44        foreach f {README docs examples} {
45                file copy ${worksrcpath}/${f} ${docdir}/
46        }
47
48        # Some of the unziped files and directories are not readable
49        # by everyone, so fix that.
50        system "find ${destroot} -type d -print0 | xargs -0 chmod a+rx"
51        system "find ${destroot} -type f -print0 | xargs -0 chmod a+r"
52}
Note: See TracBrowser for help on using the repository browser.