1 | # $Id: Portfile 35275 2008-03-23 15:54:42Z jberry macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name groovy |
---|
6 | version 1.5.6 |
---|
7 | |
---|
8 | categories java lang |
---|
9 | maintainers openmaintainer |
---|
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 84c9d4031f6ffa21225d1dfcae90a783 \ |
---|
31 | sha1 05bce208c2ee8e393a57d6fab785a42d9d9530f4 \ |
---|
32 | rmd160 92f28fb3d8a6eea6949536e5ac194680f15e3a63 |
---|
33 | use_zip yes |
---|
34 | |
---|
35 | depends_build bin:ant: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 { groovy groovyc groovyConsole groovysh startGroovy } { |
---|
60 | file attributes ${target}/bin/${f} -permissions +x |
---|
61 | system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}" |
---|
62 | } |
---|
63 | } |
---|