[37875] trunk/dports/devel
simon at macports.org
simon at macports.org
Fri Jun 27 09:59:34 PDT 2008
Revision: 37875
http://trac.macosforge.org/projects/macports/changeset/37875
Author: simon at macports.org
Date: 2008-06-27 09:59:32 -0700 (Fri, 27 Jun 2008)
Log Message:
-----------
devel/grails: New port, closes #15552. Thanks to tomaslin at gmail.com.
Added Paths:
-----------
trunk/dports/devel/grails/
trunk/dports/devel/grails/Portfile
Added: trunk/dports/devel/grails/Portfile
===================================================================
--- trunk/dports/devel/grails/Portfile (rev 0)
+++ trunk/dports/devel/grails/Portfile 2008-06-27 16:59:32 UTC (rev 37875)
@@ -0,0 +1,70 @@
+# $Id$
+
+PortSystem 1.0
+
+name grails
+version 1.0.3
+categories devel java
+maintainers nomaintainer
+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/
+platforms darwin
+distname ${name}-bin-${version}
+master_sites http://dist.codehaus.org/grails
+checksums md5 b27d6a9fd33855a0b58ce3813be48a6f \
+ sha1 001a0b7106a54a30929b7a40c77d0b92fcb9eafb \
+ rmd160 4666384667ff395a17e98b2b32f7e8307f243f5c
+
+worksrcdir ${name}-${version}
+set workTarget ""
+
+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}/dist \
+ ${worksrcpath}/conf \
+ ${worksrcpath}/lib \
+ ${worksrcpath}/media \
+ ${worksrcpath}/scripts \
+ ${worksrcpath}/src \
+ ${worksrcpath}/build.properties \
+ ${destroot}${prefix}/share/java/${name}
+
+ # Symlink grails into the bin directory
+ system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/grails"
+ system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/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/${name}"
+ ui_msg "****************************************************************************"
+ }
Property changes on: trunk/dports/devel/grails/Portfile
___________________________________________________________________
Name: svn:keyword
+ Id
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080627/2d74a337/attachment-0001.html
More information about the macports-changes
mailing list