[51421] trunk/dports/devel

macsforever2000 at macports.org macsforever2000 at macports.org
Sun May 24 15:51:37 PDT 2009


Revision: 51421
          http://trac.macports.org/changeset/51421
Author:   macsforever2000 at macports.org
Date:     2009-05-24 15:51:36 -0700 (Sun, 24 May 2009)
Log Message:
-----------
Added new port. (#19246)

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

Added: trunk/dports/devel/gradle/Portfile
===================================================================
--- trunk/dports/devel/gradle/Portfile	                        (rev 0)
+++ trunk/dports/devel/gradle/Portfile	2009-05-24 22:51:36 UTC (rev 51421)
@@ -0,0 +1,71 @@
+# $Id$
+
+PortSystem 1.0
+
+name				gradle
+version				0.6
+categories			devel java groovy
+maintainers			breskeby.com:rene
+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			${name}-${version}-src
+master_sites		http://dist.codehaus.org/gradle
+checksums 			md5	0a629160555918179e6f18355b34bd12 \
+					sha1 eb544bf902d954728f1188d1be37b97b974b87dc \
+					rmd160 a89ff353e12c534b214aca13cc266e3fb0d41aa4
+						
+worksrcdir			${name}-${version}
+set workTarget		""
+
+use_zip				yes
+use_bzip2			no
+use_configure 		no
+
+worksrcdir			gradle-${version}
+
+build.cmd			./gradlew
+build.target		clean explodedDistBase -Dskip.test
+depends_lib			port:groovy
+
+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}/build/distributions/exploded/bin *.bat] {
+		file delete $f
+	}
+}
+
+destroot	{
+	# Create the target java directory
+	xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
+
+	# Copy over the needed elements of our directory tree
+	file copy ${worksrcpath}/build/distributions/exploded/bin					\
+			  ${worksrcpath}/build/distributions/exploded/lib 					\
+			  ${worksrcpath}/build/distributions/exploded/gradle-imports 		\
+			  ${worksrcpath}/build/distributions/exploded/LICENSE		 		\
+			  ${worksrcpath}/build/distributions/exploded/NOTICE		 		\
+			  ${worksrcpath}/build/distributions/exploded/plugin.properties 	\
+			  ${destroot}${prefix}/share/java/${name}
+
+	# Symlink gradle into the bin directory
+	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/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/${name}"
+ 	        ui_msg "****************************************************************************"
+ }


Property changes on: trunk/dports/devel/gradle/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090524/74154314/attachment.html>


More information about the macports-changes mailing list