source: trunk/dports/devel/griffon/Portfile

Last change on this file was 125396, checked in by mf2k@…, 3 years ago

gant gradle-devel grails grails-devel griffon griffon-devel groovy groovy-devel groovyserv: Ports abandoned. (#44732)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 125396 2014-09-16 20:06:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                griffon
6version             1.2.0
7set branch          [join [lrange [split ${version} .] 0 1] .]
8categories          devel java
9maintainers         nomaintainer
10platforms           darwin
11
12description         Griffon is a Grails like application framework for developing desktop applications in Groovy.
13long_description    Griffon aims to bring the "coding by convention" paradigm to Groovy. \
14                    It is an open-source application framework that leverages the Groovy \
15                    language and complements Java desktop development. \
16                    You can use Griffon as a standalone development environment that hides all \
17                    configuration details or integrate your Java business logic. \
18                    Griffon aims to make development as simple as possible and hence \
19                    should appeal to a wide range of developers not just those from the Java community.
20
21homepage            http://griffon.codehaus.org/
22conflicts                       griffon-devel
23
24distname            griffon-${version}-bin
25master_sites        http://dist.codehaus.org/griffon/griffon/${branch}.x/
26extract.suffix      .tgz
27
28checksums           md5     ee8ec75e5c6c19c0ba8917a13cdc5fd2 \
29                    sha1    ef9870d871080a634439789f7e7fb829ced3c34f \
30                    rmd160  1d34bff8c1e0a580ae601a715f425508abf8a882
31
32worksrcdir          .
33set workTarget      ""
34use_configure       no
35
36build.cmd           true
37
38pre-destroot {
39    # Remove extraneous bat files
40    foreach f [glob -directory ${worksrcpath}${workTarget}/griffon-${version}/bin *.bat] {
41        file delete $f
42    }
43}
44
45destroot    {
46    # Create the target java directory
47    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
48
49    # Copy over the needed elements of our directory tree
50    file copy ${worksrcpath}/griffon-${version}/bash                                    \
51              ${worksrcpath}/griffon-${version}/conf                                    \
52              ${worksrcpath}/griffon-${version}/dist                                    \
53              ${worksrcpath}/griffon-${version}/INSTALL                                 \
54              ${worksrcpath}/griffon-${version}/lib                                             \
55              ${worksrcpath}/griffon-${version}/LICENSE                                 \
56              ${worksrcpath}/griffon-${version}/media                                   \
57              ${worksrcpath}/griffon-${version}/src                                             \
58              ${worksrcpath}/griffon-${version}/scripts                                 \
59              ${destroot}${prefix}/share/java/${name}/
60
61        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/bin
62        eval xinstall -m 755 [glob ${worksrcpath}/griffon-${version}/bin/*] ${destroot}${prefix}/share/java/${name}/bin   
63       
64        # Symlink programs into the bin directory
65    ln -s ${prefix}/share/java/${name}/bin/griffon ${destroot}${prefix}/bin
66    ln -s ${prefix}/share/java/${name}/bin/startGriffon ${destroot}${prefix}/bin
67}
68
69post-activate {
70    ui_msg "****************************************************************************"
71    ui_msg "* Remember to set the environment variable GRIFFON_HOME to the path to"
72    ui_msg "* the griffon distribution: ${prefix}/share/java/${name}"
73    ui_msg "****************************************************************************"
74 }
Note: See TracBrowser for help on using the repository browser.