source: trunk/dports/devel/griffon-devel/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-devel
6version             0.9.5-rc2
7revision                        2
8set branch          [join [lrange [split ${version} .] 0 1] .]
9categories          devel java
10maintainers         nomaintainer
11platforms           darwin
12
13description         Griffon is a Grails like application framework for developing desktop applications in Groovy.
14long_description    Griffon aims to bring the "coding by convention" paradigm to Groovy. \
15                    It is an open-source application framework that leverages the Groovy \
16                    language and complements Java desktop development. \
17                    You can use Griffon as a standalone development environment that hides all \
18                    configuration details or integrate your Java business logic. \
19                    Griffon aims to make development as simple as possible and hence \
20                    should appeal to a wide range of developers not just those from the Java community.
21
22homepage            http://griffon.codehaus.org/
23conflicts                       griffon
24
25distname            griffon-${version}-bin
26master_sites        http://dist.codehaus.org/griffon/griffon/${branch}.x/
27extract.suffix      .tgz
28
29checksums           md5     63d375d43d4205fead67ac62156f0c6a \
30                    sha1    d3fbf2579ec568fe4e73602bb0b297b5f97378c0 \
31                    rmd160  64683017fba794aadc9bdc171182a13bec3a1c83
32
33worksrcdir          .
34set workTarget      ""
35use_configure       no
36
37build.cmd           true
38
39pre-destroot {
40    # Remove extraneous bat files
41    foreach f [glob -directory ${worksrcpath}${workTarget}/griffon-${version}/bin *.bat] {
42        file delete $f
43    }
44}
45
46destroot    {
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}/griffon-${version}/bash                                    \
52              ${worksrcpath}/griffon-${version}/conf                                    \
53              ${worksrcpath}/griffon-${version}/dist                                    \
54              ${worksrcpath}/griffon-${version}/INSTALL                                 \
55              ${worksrcpath}/griffon-${version}/lib                                             \
56              ${worksrcpath}/griffon-${version}/LICENSE                                 \
57              ${worksrcpath}/griffon-${version}/media                                   \
58              ${worksrcpath}/griffon-${version}/src                                             \
59              ${worksrcpath}/griffon-${version}/scripts                                 \
60              ${destroot}${prefix}/share/java/${name}/
61
62        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/bin
63        eval xinstall -m 755 [glob ${worksrcpath}/griffon-${version}/bin/*] ${destroot}${prefix}/share/java/${name}/bin   
64       
65        # Symlink programs into the bin directory
66    ln -s ${prefix}/share/java/${name}/bin/griffon ${destroot}${prefix}/bin
67    ln -s ${prefix}/share/java/${name}/bin/startGriffon ${destroot}${prefix}/bin
68}
69
70post-activate {
71    ui_msg "****************************************************************************"
72    ui_msg "* Remember to set the environment variable GRIFFON_HOME to the path to"
73    ui_msg "* the griffon distribution: ${prefix}/share/java/${name}"
74    ui_msg "****************************************************************************"
75 }
Note: See TracBrowser for help on using the repository browser.