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

Last change on this file since 82689 was 82689, checked in by ryandesign@…, 9 years ago

groovy: simplify by using use_zip; see #30752

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 82689 2011-08-18 11:10:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            groovy
6version         1.8.1
7revision        1
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/
28use_zip         yes
29checksums       md5     3ece1ace9cda46ca742fbad03b078844 \
30                sha1    3a9230a37a769e6f0d577e9dd95357c46008a602 \
31                rmd160  5f93489deb0e7595161624860c77134d35fea4b7
32use_configure   no
33worksrcdir      groovy-${version}
34patchfiles      patch-build-maven.xml.diff patch-settings.xml.diff
35build.cmd       ant
36build.target    install -DskipTests=true
37supported_archs noarch
38destroot {
39    set target ${destroot}${prefix}/share/java/groovy
40
41    # Create the target java directory
42    xinstall -m 755 -d ${destroot}${prefix}/share/java
43       
44    # Copy in our directory tree
45    file copy ${worksrcpath}/target/install ${target}
46               
47    # Remove .bat files
48    foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
49    # Fix permissions on the scripts,
50    # and at the same time add symlinks to them
51    foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
52        file attributes ${target}/bin/${f} -permissions +x
53        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
54    }
55}
Note: See TracBrowser for help on using the repository browser.