1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name groovy |
---|
6 | version 1.6.3 |
---|
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 61a2f81749d4bc5e8ab84c2a8c2eace4 \ |
---|
31 | sha1 2b3648cce1369e043bf1a4130ea4a2a5c3bd6c08 \ |
---|
32 | rmd160 ed236f24a3afedf8fd5e9f03cea9e1687e8719a8 |
---|
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 | } |
---|