[73832] trunk/dports/devel

Ryan Schmidt ryandesign at macports.org
Fri Nov 26 13:42:13 PST 2010


On Nov 26, 2010, at 12:25, breskeby at macports.org wrote:

> Revision: 73832
>          http://trac.macports.org/changeset/73832
> Author:   breskeby at macports.org
> Date:     2010-11-26 10:25:27 -0800 (Fri, 26 Nov 2010)
> Log Message:
> -----------
> #27460 initial commit of groovyserv port

> +# $Id: Portfile 72125 2010-10-04 20:00:00Z breskeby at macports.org $

Don't forget to set up your Subversion autoprops so that you set svn:keywords and svn:eol-style on Portfiles to the proper values.


> +PortSystem 1.0
> +
> +name				groovyserv
> +version				0.4
> +categories			devel groovy
> +maintainers			breskeby
> +description			GroovyServ makes Groovy startup time quicker, by pre-invoking groovy as a TCP/IP server. \
> +long_description	In the case of scripting in dynamic-type languages, quick response about \
> +					invocation is very important. Try-and-run cycles is repeated frequently \
> +					than static-type languages, so sometimes 2 seconds or even a second might \
> +					be intolerable. \
> +					GroovyServ reduces the startup time of JVM and Groovy runtime significantly.
> +homepage			http://kobo.github.com/groovyserv/index.html
> +platforms			darwin
> +distname			${name}-${version}-macosx-bin

Based on the "bin" in the filename, and what I can see after extracting it, and the way the rest of the portfile is written, this is a precompiled binary. Looks like it's for x86_64 only too. So you should add the line "supported_archs x86_64" to the portfile, so that users of i386, ppc and ppc64 Macs will be informed ahead of time that it won't work on their systems.


> +	# Symlink groovyserv into the bin directory
> +	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/devel/${name}/bin/groovyserver"
> +	system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/devel/${name}/bin/groovyclient"

You needn't use "system" just to create symlinks. Just use the "ln" MacPorts Tcl command.




More information about the macports-dev mailing list