[131375] trunk/dports/devel/gradle/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jan 10 08:19:26 PST 2015


Revision: 131375
          https://trac.macports.org/changeset/131375
Author:   ryandesign at macports.org
Date:     2015-01-10 08:19:26 -0800 (Sat, 10 Jan 2015)
Log Message:
-----------
gradle: update to 2.2 (#45932); indicate license; use notes instead of post-activate ui_msg; use copy, delete and ln commands instead of more-verbose equivalents; remove conflict with gradle-devel port which will become obsolete

Modified Paths:
--------------
    trunk/dports/devel/gradle/Portfile

Modified: trunk/dports/devel/gradle/Portfile
===================================================================
--- trunk/dports/devel/gradle/Portfile	2015-01-10 16:18:41 UTC (rev 131374)
+++ trunk/dports/devel/gradle/Portfile	2015-01-10 16:19:26 UTC (rev 131375)
@@ -4,8 +4,9 @@
 PortSystem          1.0
 
 name                gradle
-version             1.12
+version             2.2
 categories          devel java groovy
+license             Apache-2
 maintainers         nomaintainer
 description         An open-source build system that is based on the Groovy language
 long_description    Gradle is a build system which offers you ease, power and freedom. \
@@ -15,13 +16,12 @@
                     of Ant and the convenience of a build-by-convention behavior.
 
 homepage            http://www.gradle.org/
-conflicts           gradle-devel
 platforms           darwin
 distname            ${name}-${version}-bin
 master_sites        http://services.gradle.org/distributions
 
-checksums           sha256  8734b13a401f4311ee418173ed6ca8662d2b0a535be8ff2a43ecb1c13cd406ea \
-                    rmd160  697617e19010e01767ab68518b356f78a8bbfdaf
+checksums           rmd160  3ae380933a7b4617f8b3aa2a6f28fff95655b143 \
+                    sha256  91e5655fe11ef414449f218c4fa2985b3a49b7903c57556da109c84fa26e1dfb
 
 worksrcdir          ${name}-${version}
 set workTarget      ""
@@ -38,7 +38,7 @@
 pre-destroot {
     # Remove extraneous bat files
     foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
-        file delete $f
+        delete $f
     }
 }
 
@@ -47,19 +47,17 @@
     xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
 
     # Copy over the needed elements of our directory tree
-    file copy ${worksrcpath}/bin \
+    copy ${worksrcpath}/bin \
         ${worksrcpath}/lib \
         ${worksrcpath}/LICENSE \
         ${worksrcpath}/NOTICE \
         ${destroot}${prefix}/share/java/${name}
 
     # Symlink gradle into the bin directory
-    system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gradle"
+    ln -s ${prefix}/share/java/${name}/bin/gradle ${destroot}${prefix}/bin
 }
 
-post-activate {
-            ui_msg "****************************************************************************"
-            ui_msg "* Remember to set the environment variable GRADLE_HOME to the path to"
-            ui_msg "* the gradle distribution: ${prefix}/share/java/${name}"
-            ui_msg "****************************************************************************"
-}
+notes "
+Remember to set the environment variable GRADLE_HOME to the path to the gradle\
+distribution: ${prefix}/share/java/${name}
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150110/0eb742cf/attachment.html>


More information about the macports-changes mailing list