[59038] trunk/dports/java/groovy-devel/Portfile

breskeby at macports.org breskeby at macports.org
Thu Oct 8 12:34:39 PDT 2009


Revision: 59038
          http://trac.macports.org/changeset/59038
Author:   breskeby at macports.org
Date:     2009-10-08 12:34:38 -0700 (Thu, 08 Oct 2009)
Log Message:
-----------
#21938 portfile for groovy 1.7-beta-1

Added Paths:
-----------
    trunk/dports/java/groovy-devel/Portfile

Added: trunk/dports/java/groovy-devel/Portfile
===================================================================
--- trunk/dports/java/groovy-devel/Portfile	                        (rev 0)
+++ trunk/dports/java/groovy-devel/Portfile	2009-10-08 19:34:38 UTC (rev 59038)
@@ -0,0 +1,62 @@
+# $Id: Portfile 58675 2009-10-02 18:23:56Z breskeby at macports.org $
+
+PortSystem 1.0
+
+name            groovy-devel
+version         1.7-beta-1
+categories      java lang
+maintainers     breskeby
+platforms       darwin
+description     Groovy -- a Java-based scripting language
+long_description Groovy is a new agile dynamic language for the JVM combining \
+                lots of great features from languages like Python, Ruby and \
+                Smalltalk and making them available to Java developers \
+                using a Java-like syntax. \
+                \
+                Groovy is designed to help you get things done on the Java \
+                platform in a quicker, more concise and fun way - bringing \
+                the power of Python and Ruby inside the Java platform. \
+                \
+                Groovy can be used as an alternative compiler to javac to \
+                generate standard Java bytecode to be used by any Java project \
+                or it can be used dynamically as an alternative language such \
+                as for scripting Java objects, templating or writing unit test cases.
+homepage        http://groovy.codehaus.org/
+conflicts		groovy
+distname        groovy-src-${version}
+master_sites    http://dist.codehaus.org/groovy/distributions/
+checksums       md5     8e48af10654aebdceb755cc71371654f \
+                sha1    fa2e540267d67ccdd1ec25ba9bd5b6f397159928 \
+                rmd160  ee0719b37bb217e599ae38b0e4de20f468a1589c
+depends_build   port:apache-ant
+depends_lib     bin:java:kaffe			
+use_configure   no
+worksrcdir      groovy-${version}
+
+extract.suffix	.zip
+extract.cmd     unzip
+extract.pre_args	-qu
+extract.post_args "-d ${workpath}"
+#extract			yes
+#use_zip			yes
+
+build.cmd       ant
+build.target    install -DskipTests=true
+destroot {
+    set target ${destroot}${prefix}/share/java/groovy
+
+    # Create the target java directory
+    xinstall -m 755 -d ${destroot}${prefix}/share/java
+	
+    # Copy in our directory tree
+    file copy ${worksrcpath}/target/install ${target}
+		
+    # Remove .bat files
+    foreach f [glob -directory ${target}/bin *.bat] { file delete $f }
+    # Fix permissions on the scripts,
+    # and at the same time add symlinks to them
+    foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } {
+        file attributes ${target}/bin/${f} -permissions +x
+        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}"
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091008/021f2bf9/attachment.html>


More information about the macports-changes mailing list