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

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

version bump 1.6.7 (#22617)

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