Ticket #19429: Portfile

File Portfile, 2.0 KB (added by rene@…, 15 years ago)

portfile for groovy version 1.6.2 (based on file for 1.6.1)

Line 
1# $Id$
2
3PortSystem                      1.0
4
5name                            groovy
6version                         1.6.2
7
8categories                      java lang
9maintainers                     nomaintainer
10platforms                       darwin
11
12description                     Groovy -- a Java-based scripting language
13long_description        Groovy is a new agile dynamic language for the JVM combining \
14                                        lots of great features from languages like Python, Ruby and \
15                                        Smalltalk and making them available to Java developers \
16                                        using a Java-like syntax. \
17                                        \
18                                        Groovy is designed to help you get things done on the Java \
19                                        platform in a quicker, more concise and fun way - bringing \
20                                        the power of Python and Ruby inside the Java platform. \
21                                        \
22                                        Groovy can be used as an alternative compiler to javac to \
23                                        generate standard Java bytecode to be used by any Java project \
24                                        or it can be used dynamically as an alternative language such \
25                                        as for scripting Java objects, templating or writing unit test cases.
26homepage                        http://groovy.codehaus.org/
27
28distname                        groovy-src-${version}
29master_sites            http://dist.codehaus.org/groovy/distributions/
30checksums           md5     fcddb2f76c0f96d801ec7e84345f149b \
31                    sha1    320d2fa94462e14f19286a8b004ab81997f6177b \
32                    rmd160  5b2e802e466b6be563dcbf9cecec6b9ceae7f58a
33use_zip                         yes
34
35depends_build           port:apache-ant
36depends_lib                     bin:java:kaffe
37                                       
38use_configure           no
39
40worksrcdir                      groovy-${version}
41
42build.cmd                       ant
43build.target            install -DskipTests=true
44
45destroot {
46        set target ${destroot}${prefix}/share/java/groovy
47       
48        # Create the target java directory
49        xinstall -m 755 -d ${destroot}${prefix}/share/java
50       
51        # Copy in our directory tree
52        file copy ${worksrcpath}/target/install ${target}
53               
54        # Remove .bat files
55        foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
56       
57        # Fix permissions on the scripts,
58        # and at the same time add symlinks to them
59        foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
60                file attributes ${target}/bin/${f} -permissions +x
61                system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
62        }
63}