[54758] trunk/dports/java/gant/Portfile

breskeby at macports.org breskeby at macports.org
Sat Aug 1 13:22:58 PDT 2009


Revision: 54758
          http://trac.macports.org/changeset/54758
Author:   breskeby at macports.org
Date:     2009-08-01 13:22:57 -0700 (Sat, 01 Aug 2009)
Log Message:
-----------
portfile for gant version 1.7.0 (#20514)

Added Paths:
-----------
    trunk/dports/java/gant/Portfile

Added: trunk/dports/java/gant/Portfile
===================================================================
--- trunk/dports/java/gant/Portfile	                        (rev 0)
+++ trunk/dports/java/gant/Portfile	2009-08-01 20:22:57 UTC (rev 54758)
@@ -0,0 +1,66 @@
+# $Id$
+
+PortSystem 1.0
+
+name				gant
+version				1.7.0
+categories			java devel groovy
+maintainers			rene at breskeby.com
+description			Gant is a tool for scripting Ant tasks using Groovy instead of XML \
+					to specify the logic. A Gant specification is a Groovy script and so \
+					can bring all the power of Groovy to bear directly, something not \
+					possible with Ant scripts. Whilst it might be seen as a competitor \
+					to Ant, Gant uses Ant tasks for many of the actions, so Gant is really \
+					an alternative way of doing things using Ant, but using a \
+					programming language rather than XML to specify the rules.
+					
+homepage			http://gant.codehaus.org/
+platforms			darwin
+distname			${name}-${version}_groovy-1.6.4
+depends_run         port:groovy
+master_sites		http://dist.codehaus.org/gant/distributions
+checksums 			md5	1864f5434d7283b7122e28a522df5316 \
+					sha1 a086d8071c19830ded7284e2686b40f3030f6a1c \
+					rmd160 1de0905a4d86a2ffcab917b271f50ccd675ab7e8
+						
+worksrcdir			${name}-${version}
+set workTarget		""
+
+use_zip				yes
+use_bzip2			no
+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/${name}
+
+	# Copy over the needed elements of our directory tree
+	file copy ${worksrcpath}/bin     						\
+			  ${worksrcpath}/lib 							\
+			  ${worksrcpath}/conf 							\
+			  ${destroot}${prefix}/share/java/${name}
+
+	# Symlink gant into the bin directory
+	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gant"
+}
+
+post-activate {
+ 	        ui_msg "****************************************************************************"
+ 	        ui_msg "* Remember to set the environment variable GANT_HOME to the path to"
+ 	        ui_msg "* the gant distribution: ${prefix}/share/java/${name}"
+ 	        ui_msg "****************************************************************************"
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090801/6a61a14a/attachment.html>


More information about the macports-changes mailing list