[65773] trunk/dports/devel/gradle-devel/Portfile
breskeby at macports.org
breskeby at macports.org
Wed Mar 31 11:53:05 PDT 2010
Revision: 65773
http://trac.macports.org/changeset/65773
Author: breskeby at macports.org
Date: 2010-03-31 11:53:04 -0700 (Wed, 31 Mar 2010)
Log Message:
-----------
#24302 add port for gradle-devel (version 0.9-preview-1)
Added Paths:
-----------
trunk/dports/devel/gradle-devel/Portfile
Added: trunk/dports/devel/gradle-devel/Portfile
===================================================================
--- trunk/dports/devel/gradle-devel/Portfile (rev 0)
+++ trunk/dports/devel/gradle-devel/Portfile 2010-03-31 18:53:04 UTC (rev 65773)
@@ -0,0 +1,66 @@
+# $Id: Portfile 58423 2009-09-28 16:05:32Z breskeby at macports.org $
+
+PortSystem 1.0
+
+name gradle-devel
+version 0.9-preview-1
+categories devel java groovy
+maintainers breskeby
+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. \
+ You can choose the balance for yourself. It has powerful multi-project build \
+ support. It has a layer on top of Ivy that provides a build-by-convention \
+ integration for Ivy. It gives you always the choice between the flexibility \
+ of Ant and the convenience of a build-by-convention behavior.
+
+homepage http://www.gradle.org/
+platforms darwin
+distname gradle-${version}-bin
+conflicts gradle
+master_sites http://dist.codehaus.org/gradle
+checksums md5 50bcf204b39b86d3344b1e6df301b2c6 \
+ sha1 a9fd4a61cc925c10f5de447ffac391015f52d2d0 \
+ rmd160 d773c1100d450d859fb99ff5776c715190a580d6
+
+worksrcdir gradle-${version}
+set workTarget ""
+
+use_zip yes
+use_configure no
+
+build.cmd true
+
+platform darwin {
+ extract.post_args | gnutar -x
+ build.env JAVA_HOME=/Library/Java/Home
+}
+
+pre-destroot {
+ # Remove extraneous bat files
+ foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
+ file delete $f
+ }
+}
+
+destroot {
+ # Create the target java directory
+ xinstall -m 755 -d ${destroot}${prefix}/share/java/gradle
+
+ # Copy over the needed elements of our directory tree
+ file copy ${worksrcpath}/bin \
+ ${worksrcpath}/lib \
+ ${worksrcpath}/gradle-imports \
+ ${worksrcpath}/LICENSE \
+ ${worksrcpath}/NOTICE \
+ ${destroot}${prefix}/share/java/gradle
+
+ # Symlink gradle into the bin directory
+ system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/gradle/bin/gradle"
+}
+
+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/gradle"
+ ui_msg "****************************************************************************"
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100331/9e3648ca/attachment.html>
More information about the macports-changes
mailing list