Ticket #22250: Portfile

File Portfile, 2.9 KB (added by ildar.karimov@…, 15 years ago)
Line 
1# $Id: Portfile 59044 2009-10-08 20:50:25Z breskeby@macports.org $
2
3PortSystem 1.0
4
5name                griffon
6version             0.2
7categories          devel java
8maintainers         nomaintainer
9platforms           darwin
10
11description         Griffon is a Grails like application framework for developing desktop applications in Groovy.
12long_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
20homepage            http://griffon.codehaus.org/
21distname            ${name}-bin-${version}
22master_sites        http://dist.codehaus.org/griffon/griffon/0.2.x
23
24checksums           md5 dd3f9268bf9d0c5ebd771c10093417df \
25                    sha1 c3a01a432709f14ec3b5f4f00f8d98b76be1f650 \
26                    rmd160 f9b8664f6af33a2b1fb372635abc457f90e47bc1
27
28worksrcdir          ${name}-${version}
29set workTarget      ""
30
31use_bzip2           no
32use_configure       no
33
34build.cmd           true
35
36pre-destroot {
37    # Remove extraneous bat files
38    foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
39        file delete $f
40    }
41}
42
43destroot    {
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
63post-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 }