1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name groovy |
---|
6 | version 1.6.2 |
---|
7 | |
---|
8 | categories java lang |
---|
9 | maintainers nomaintainer |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Groovy -- a Java-based scripting language |
---|
13 | long_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. |
---|
26 | homepage http://groovy.codehaus.org/ |
---|
27 | |
---|
28 | distname groovy-src-${version} |
---|
29 | master_sites http://dist.codehaus.org/groovy/distributions/ |
---|
30 | checksums md5 fcddb2f76c0f96d801ec7e84345f149b \ |
---|
31 | sha1 320d2fa94462e14f19286a8b004ab81997f6177b \ |
---|
32 | rmd160 5b2e802e466b6be563dcbf9cecec6b9ceae7f58a |
---|
33 | use_zip yes |
---|
34 | |
---|
35 | depends_build port:apache-ant |
---|
36 | depends_lib bin:java:kaffe |
---|
37 | |
---|
38 | use_configure no |
---|
39 | |
---|
40 | worksrcdir groovy-${version} |
---|
41 | |
---|
42 | build.cmd ant |
---|
43 | build.target install -DskipTests=true |
---|
44 | |
---|
45 | destroot { |
---|
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 | } |
---|