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