1 | # $Id: Portfile 59044 2009-10-08 20:50:25Z breskeby@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name griffon |
---|
6 | version 0.2 |
---|
7 | categories devel java |
---|
8 | maintainers nomaintainer |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | description Griffon is a Grails like application framework for developing desktop applications in Groovy. |
---|
12 | long_description Griffon aims to bring the "coding by convention" paradigm to Groovy. \ |
---|
13 | It is an open-source application framework that leverages the Groovy \ |
---|
14 | language and complements Java desktop development. \ |
---|
15 | You can use Griffon as a standalone development environment that hides all \ |
---|
16 | configuration details or integrate your Java business logic. \ |
---|
17 | Griffon aims to make development as simple as possible and hence \ |
---|
18 | should appeal to a wide range of developers not just those from the Java community. |
---|
19 | |
---|
20 | homepage http://griffon.codehaus.org/ |
---|
21 | distname ${name}-bin-${version} |
---|
22 | master_sites http://dist.codehaus.org/griffon/griffon/0.2.x |
---|
23 | |
---|
24 | checksums md5 dd3f9268bf9d0c5ebd771c10093417df \ |
---|
25 | sha1 c3a01a432709f14ec3b5f4f00f8d98b76be1f650 \ |
---|
26 | rmd160 f9b8664f6af33a2b1fb372635abc457f90e47bc1 |
---|
27 | |
---|
28 | worksrcdir ${name}-${version} |
---|
29 | set workTarget "" |
---|
30 | |
---|
31 | use_bzip2 no |
---|
32 | use_configure no |
---|
33 | |
---|
34 | build.cmd true |
---|
35 | |
---|
36 | pre-destroot { |
---|
37 | # Remove extraneous bat files |
---|
38 | foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] { |
---|
39 | file delete $f |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | destroot { |
---|
44 | # Create the target java directory |
---|
45 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
---|
46 | |
---|
47 | # Copy over the needed elements of our directory tree |
---|
48 | file copy ${worksrcpath}/bin \ |
---|
49 | ${worksrcpath}/dist \ |
---|
50 | ${worksrcpath}/conf \ |
---|
51 | ${worksrcpath}/lib \ |
---|
52 | ${worksrcpath}/media \ |
---|
53 | ${worksrcpath}/scripts \ |
---|
54 | ${worksrcpath}/src \ |
---|
55 | ${worksrcpath}/build.properties \ |
---|
56 | ${destroot}${prefix}/share/java/${name} |
---|
57 | |
---|
58 | # Symlink grails into the bin directory |
---|
59 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/griffon" |
---|
60 | system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/startGriffon" |
---|
61 | } |
---|
62 | |
---|
63 | post-activate { |
---|
64 | ui_msg "****************************************************************************" |
---|
65 | ui_msg "* Remember to set the environment variable GRIFFON_HOME to the path to" |
---|
66 | ui_msg "* the griffon distribution: ${prefix}/share/java/${name}" |
---|
67 | ui_msg "****************************************************************************" |
---|
68 | } |
---|