[125455] trunk/dports/java/groovy

ryandesign at macports.org ryandesign at macports.org
Thu Sep 18 02:25:29 PDT 2014


Revision: 125455
          https://trac.macports.org/changeset/125455
Author:   ryandesign at macports.org
Date:     2014-09-18 02:25:29 -0700 (Thu, 18 Sep 2014)
Log Message:
-----------
groovy: maintainer update to 2.2.1 (#41439)

Modified Paths:
--------------
    trunk/dports/java/groovy/Portfile

Removed Paths:
-------------
    trunk/dports/java/groovy/files/

Modified: trunk/dports/java/groovy/Portfile
===================================================================
--- trunk/dports/java/groovy/Portfile	2014-09-18 09:23:36 UTC (rev 125454)
+++ trunk/dports/java/groovy/Portfile	2014-09-18 09:25:29 UTC (rev 125455)
@@ -3,12 +3,16 @@
 PortSystem 1.0
 
 name            groovy
-version         2.1.8
+version         2.2.1
 revision        0
 categories      java lang
 maintainers     breun.nl:nils openmaintainer
 platforms       darwin
+license         Apache-2
+supported_archs noarch
+
 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 \
@@ -22,35 +26,39 @@
                 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/
-distname        groovy-src-${version}
 master_sites    http://dist.codehaus.org/groovy/distributions/
-license         Apache-2
+distname        groovy-binary-${version}
 use_zip         yes
 
-checksums       rmd160  b1fd6a0e022565be74db240050bd1b21e2099ea3 \
-                sha256  487b2501a9b0ae4a6f945e96402c4eaf71fb935c984ab7bc47e3a91f661afdad
+checksums       rmd160  392e6123c8fbbbce27560261f386ebd601782a25 \
+                sha256  11262c2a0883018d4c68d353479a84bf32a694706437a31b23e17e3f2db695dc
+
+worksrcdir      groovy-${version}
+
 use_configure   no
-worksrcdir      groovy-${version}
-build.cmd		GRADLE_USER_HOME=${workpath} ./gradlew
-build.args      -g ${workpath}
-build.target	installGroovy
-supported_archs noarch
+
+build {}
+
 destroot {
-    set target ${destroot}${prefix}/share/java/groovy
+    set target ${destroot}${prefix}/share/java/${name}
 
     # 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}"
+    xinstall -m 755 -d ${target}
+
+    # Copy over the needed elements of our directory tree
+    foreach d { bin conf embeddable indy lib } {
+        copy ${worksrcpath}/${d} ${target}
     }
+
+    # Remove extraneous bat files
+    foreach f [glob -directory ${target}/bin *.bat] {
+        delete ${f}
+    }
+
+    # Add symlinks to the scripts
+    foreach f { grape groovy groovyConsole groovyc groovydoc groovysh java2groovy startGroovy } {
+        ln -s ../share/java/groovy/bin/${f} ${destroot}${prefix}/bin
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140918/a37e1ce1/attachment.html>


More information about the macports-changes mailing list