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

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

groovy-devel: version update to 1.8.0-beta-2

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