[58134] trunk/dports/devel/grails-devel/Portfile

breskeby at macports.org breskeby at macports.org
Tue Sep 22 14:32:52 PDT 2009


Revision: 58134
          http://trac.macports.org/changeset/58134
Author:   breskeby at macports.org
Date:     2009-09-22 14:32:51 -0700 (Tue, 22 Sep 2009)
Log Message:
-----------
#21556 submit portfile for Grails 1.2-M2 release

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

Added: trunk/dports/devel/grails-devel/Portfile
===================================================================
--- trunk/dports/devel/grails-devel/Portfile	                        (rev 0)
+++ trunk/dports/devel/grails-devel/Portfile	2009-09-22 21:32:51 UTC (rev 58134)
@@ -0,0 +1,72 @@
+# $Id: Portfile 53482 2009-07-06 20:40:33Z breskeby at macports.org $
+
+PortSystem 1.0
+
+name				grails-devel
+version				1.2-M2
+categories			devel java
+maintainers			breskeby
+description			An open-source web application framework that leverages the Groovy language
+long_description	Grails aims to bring the "coding by convention" paradigm to Groovy. \
+					It's an open-source web application framework that leverages the Groovy \
+					language and complements Java Web development. \
+					You can use Grails as a standalone development environment that hides all \
+					configuration details or integrate your Java business logic. \
+					Grails aims to make development as simple as possible and hence \
+					should appeal to a wide range of developers not just those from the Java community.
+homepage			http://www.grails.org/
+conflicts			grails
+platforms			darwin
+distname			grails-${version}
+master_sites		http://dist.codehaus.org/grails
+checksums 			md5 950f59e727d110de1c006db4b1ea70e8 \
+					sha1 37c0b231428a502fcaba3f89d13e81751415a264 \
+					rmd160 5a2248a4ab1ad0fa089528942ce3eb19931d7c6f
+
+worksrcdir			grails-${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/grails
+
+	# Copy over the needed elements of our directory tree
+	file copy ${worksrcpath}/bin     						\
+			  ${worksrcpath}/dist 							\
+			  ${worksrcpath}/conf 							\
+			  ${worksrcpath}/lib 							\
+			  ${worksrcpath}/media 							\
+			  ${worksrcpath}/scripts						\
+			  ${worksrcpath}/src						    \
+			  ${worksrcpath}/build.properties 				\
+			  ${destroot}${prefix}/share/java/grails
+
+	# Symlink grails into the bin directory
+	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/grails/bin/grails"
+	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/grails/bin/startGrails"
+}
+
+post-activate {
+ 	        ui_msg "****************************************************************************"
+ 	        ui_msg "* Remember to set the environment variable GRAILS_HOME to the path to"
+ 	        ui_msg "* the grails distribution: ${prefix}/share/java/grails"
+ 	        ui_msg "****************************************************************************"
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090922/eea3ed35/attachment.html>


More information about the macports-changes mailing list