source: trunk/dports/java/groovy/Portfile @ 97644

Last change on this file since 97644 was 97644, checked in by breskeby@…, 8 years ago

groovy: version update to 2.0.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 97644 2012-09-10 17:22:37Z breskeby@macports.org $
2
3PortSystem 1.0
4
5name            groovy
6version         2.0.2
7revision        0
8categories      java lang
9maintainers     breskeby
10platforms       darwin
11description     Groovy -- a Java-based scripting language
12long_description Groovy is a new agile dynamic language for the JVM combining \
13                lots of great features from languages like Python, Ruby and \
14                Smalltalk and making them available to Java developers \
15                using a Java-like syntax. \
16                \
17                Groovy is designed to help you get things done on the Java \
18                platform in a quicker, more concise and fun way - bringing \
19                the power of Python and Ruby inside the Java platform. \
20                \
21                Groovy can be used as an alternative compiler to javac to \
22                generate standard Java bytecode to be used by any Java project \
23                or it can be used dynamically as an alternative language such \
24                as for scripting Java objects, templating or writing unit test cases.
25homepage        http://groovy.codehaus.org/
26distname        groovy-src-${version}
27master_sites    http://dist.codehaus.org/groovy/distributions/
28license         ASL-2
29conflicts               groovy-devel
30extract.suffix     .zip
31extract.cmd        unzip
32extract.pre_args   "-o -q"
33extract.post_args  "-d ${workpath}"
34
35checksums               md5     d7c6aeedddec6cc800385e1f96045902 \
36                sha1    15c9af6e482d85b63ea588a51ad9a3c53c6b5955 \
37                rmd160  4bdc49206c19aa21e5a3da53352c8d84c6468240
38use_configure   no
39worksrcdir      groovy-${version}
40build.cmd               ./gradlew
41build.args      -g ${workpath}
42build.target    installGroovy
43supported_archs noarch
44destroot {
45    set target ${destroot}${prefix}/share/java/groovy
46
47    # Create the target java directory
48    xinstall -m 755 -d ${destroot}${prefix}/share/java
49       
50    # Copy in our directory tree
51    file copy ${worksrcpath}/target/install ${target}
52               
53    # Remove .bat files
54    foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
55    # Fix permissions on the scripts,
56    # and at the same time add symlinks to them
57    foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
58        file attributes ${target}/bin/${f} -permissions +x
59        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
60    }
61}
Note: See TracBrowser for help on using the repository browser.