1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name grails-devel |
---|
6 | version 2.2.0.RC1 |
---|
7 | categories devel java |
---|
8 | maintainers breskeby |
---|
9 | description An open-source web application framework that leverages the Groovy language |
---|
10 | long_description Grails aims to bring the "coding by convention" paradigm to Groovy. \ |
---|
11 | It's an open-source web application framework that leverages the Groovy \ |
---|
12 | language and complements Java Web development. \ |
---|
13 | You can use Grails as a standalone development environment that hides all \ |
---|
14 | configuration details or integrate your Java business logic. \ |
---|
15 | Grails aims to make development as simple as possible and hence \ |
---|
16 | should appeal to a wide range of developers not just those from the Java community. |
---|
17 | homepage http://www.grails.org/ |
---|
18 | license Apache-2 |
---|
19 | platforms darwin |
---|
20 | conflicts grails-devel |
---|
21 | distname ${name}-${version} |
---|
22 | master_sites http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/ |
---|
23 | checksums sha1 a2db745842ec58ce8fe47be22cbf4832baacbede \ |
---|
24 | rmd160 7c1b18caf04e4e10847f46c18f3dafac2f46f3cb |
---|
25 | |
---|
26 | worksrcdir ${name}-${version} |
---|
27 | set workTarget "" |
---|
28 | |
---|
29 | use_zip yes |
---|
30 | use_configure no |
---|
31 | |
---|
32 | build.cmd true |
---|
33 | |
---|
34 | platform darwin { |
---|
35 | extract.post_args | gnutar -x |
---|
36 | build.env JAVA_HOME=/Library/Java/Home |
---|
37 | } |
---|
38 | |
---|
39 | pre-destroot { |
---|
40 | # Remove extraneous bat files |
---|
41 | foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] { |
---|
42 | file delete $f |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
47 | # Create the target java directory |
---|
48 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
---|
49 | |
---|
50 | # Copy over the needed elements of our directory tree |
---|
51 | file copy ${worksrcpath}/bin \ |
---|
52 | ${worksrcpath}/dist \ |
---|
53 | ${worksrcpath}/conf \ |
---|
54 | ${worksrcpath}/lib \ |
---|
55 | ${worksrcpath}/media \ |
---|
56 | ${worksrcpath}/plugins \ |
---|
57 | ${worksrcpath}/scripts \ |
---|
58 | ${worksrcpath}/src \ |
---|
59 | ${worksrcpath}/build.properties \ |
---|
60 | ${destroot}${prefix}/share/java/${name} |
---|
61 | |
---|
62 | # Symlink grails into the bin directory |
---|
63 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/grails" |
---|
64 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/startGrails" |
---|
65 | } |
---|
66 | |
---|
67 | notes " |
---|
68 | Remember to set the environment variable GRAILS_HOME to the path to\ |
---|
69 | the grails distribution: ${prefix}/share/java/${name} |
---|
70 | " |
---|