source: trunk/dports/devel/groovyserv/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: 1.7 KB
Line 
1# $Id: Portfile 125396 2014-09-16 20:06:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            groovyserv
6version                         0.9
7categories                      devel groovy
8maintainers                     nomaintainer
9description                     GroovyServ makes Groovy startup time quicker, by pre-invoking groovy as a TCP/IP server.
10long_description        In the case of scripting in dynamic-type languages, quick response about \
11                                        invocation is very important. Try-and-run cycles is repeated frequently \
12                                        than static-type languages, so sometimes 2 seconds or even a second might \
13                                        be intolerable. \
14                                        GroovyServ reduces the startup time of JVM and Groovy runtime significantly.
15homepage                        http://kobo.github.com/groovyserv/index.html
16platforms                       darwin
17distname                        ${name}-${version}-macosx-x86_64-bin
18master_sites            http://github.com/downloads/kobo/groovyserv
19checksums                       md5     99dc7505ba03fe4ed22353e492e20121 \
20                    sha1    8c3ee10527af0f390a15a3d75b5199b1fa05c90e \
21                    rmd160  24482827f878985361f8147b60901843a4f37d4b
22
23worksrcdir                      ${name}-${version}
24set workTarget          ""
25
26use_zip                 yes
27use_configure           no
28
29build.cmd                       true
30
31pre-destroot {
32        # Remove extraneous bat files
33        foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
34                file delete $f
35        }
36}
37
38destroot        {
39        # Create the target java directory
40        xinstall -m 755 -d ${destroot}${prefix}/share/devel/${name}
41
42        # Copy over the needed elements of our directory tree
43        file copy ${worksrcpath}/lib                                                    \
44                          ${worksrcpath}/bin                                                    \
45                          ${destroot}${prefix}/share/devel/${name}
46
47        # Symlink groovyserv into the bin directory
48        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/devel/${name}/bin/groovyserver"
49        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/devel/${name}/bin/groovyclient"
50}
Note: See TracBrowser for help on using the repository browser.