source: trunk/dports/java/proguard/Portfile

Last change on this file was 124993, checked in by krischik@…, 3 years ago

Update to version 5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 124993 2014-09-02 05:45:50Z ryandesign@macports.org $
2
3PortSystem 1.0
4               
5name            proguard
6version         5.0
7categories      java
8platforms       darwin
9maintainers     blair krischik openmaintainer
10
11description     Java bytecode shrinker, optimizer, and obfuscator.
12long_description \
13    ProGuard is a free Java class file shrinker, optimizer, \
14    obfuscator, and preverifier.  It detects and removes unused \
15    classes, fields, methods, and attributes.  It optimizes bytecode \
16    and removes unused instructions.  It renames the remaining \
17    classes, fields, and methods using short meaningless names. \
18    Finally, it preverifies the processed code for Java 6 or for Java \
19    Micro Edition.
20
21homepage        http://proguard.sourceforge.net/
22
23master_sites    sourceforge
24distname        ${name}${version}
25checksums           md5     1f8240c85096e4aa51307301fb74b33a \
26                    sha1    f418baad86c22e5de9c50150d5ff021c8f3e8d82 \
27                    sha256  4b2bcedbe15cc0e4eca44c245f97a42fe00bf21721dc9d5aa4b65a342e588a4c
28
29depends_lib     bin:java:kaffe
30
31use_configure   no
32
33build.cmd       true
34
35destroot {
36    set javadir ${destroot}${prefix}/share/java
37    set docdir ${destroot}${prefix}/share/doc/${name}
38
39    xinstall -d -m 755 ${javadir}
40    xinstall -d -m 755 ${docdir}
41
42    foreach f [glob -directory ${worksrcpath}/lib *.jar] {
43        file copy ${f} ${javadir}/
44    }
45    foreach f {README docs examples} {
46        file copy ${worksrcpath}/${f} ${docdir}/
47    }
48}
Note: See TracBrowser for help on using the repository browser.