source: trunk/dports/java/groovy-devel/Portfile @ 76820

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

udpate to version 1.8.0-rc-2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 76820 2011-03-09 19:54:10Z breskeby@macports.org $
2
3PortSystem 1.0
4
5name            groovy-devel
6version         1.8.0-rc-2
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/
25conflicts               groovy
26distname        groovy-src-${version}
27master_sites    http://dist.codehaus.org/groovy/distributions/
28checksums       md5     69f14d54b57347eaf4b288a26240343a \
29                sha1    108b0a0708bb5f4c9936148fd05699931685535d \
30                rmd160  09c412c534a0ab1af8c8f17537e45cacae3ed4bb
31use_configure   no
32worksrcdir      groovy-${version}
33extract.suffix  .zip
34extract.cmd     unzip
35extract.pre_args        -qu
36extract.post_args "-d ${workpath}"
37#extract                        yes
38#use_zip                        yes
39
40build.cmd       ant
41build.target    install -DskipTests=true
42destroot {
43    set target ${destroot}${prefix}/share/java/groovy
44
45    # Create the target java directory
46    xinstall -m 755 -d ${destroot}${prefix}/share/java
47       
48    # Copy in our directory tree
49    file copy ${worksrcpath}/target/install ${target}
50               
51    # Remove .bat files
52    foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
53    # Fix permissions on the scripts,
54    # and at the same time add symlinks to them
55    foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
56        file attributes ${target}/bin/${f} -permissions +x
57        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
58    }
59}
Note: See TracBrowser for help on using the repository browser.