Skip to content
Permalink
Browse files

Update groovy --> 1.0-jsr-05

  • Loading branch information
jdberry committed Mar 26, 2006
1 parent 68e02c1 commit 0f98fac203e63d50dc12e31c11d42a898c78aa5d
Showing with 5 additions and 10 deletions.
  1. +5 −10 java/groovy/Portfile
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.4 2005/09/06 04:41:53 jberry Exp $
# $Id: Portfile,v 1.5 2006/03/26 17:00:05 jberry Exp $

PortSystem 1.0

name groovy
version 1.0-jsr-03
version 1.0-jsr-05

categories java lang
maintainers jberry@opendarwin.org
@@ -23,10 +23,11 @@ long_description Groovy is a new agile dynamic language for the JVM combining \
generate standard Java bytecode to be used by any Java project \
or it can be used dynamically as an alternative language such \
as for scripting Java objects, templating or writing unit test cases.
homepage http://groovy.codehaus.org/

distname ${name}-${version}-src
master_sites http://dist.codehaus.org/groovy/distributions/
checksums md5 54d7c8347ccf31ea61b7ec642ce2c731
checksums md5 6e3a9f279d3b4d169b7cd75624a6aac7

depends_build bin:ant:apache-ant \
bin:maven:maven
@@ -41,12 +42,6 @@ build.target groovy:disable-unittests groovy:make-install

post-patch {
reinplace /<wiki2testcase/d ${worksrcpath}/maven.xml

# Fix improper DOS line endings on some of the script files
foreach f { groovy groovyConsole groovysh } {
set script "${worksrcpath}/src/bin/$f"
system "tmpfile=`mktemp -t groovy` && cat $script | tr -d '\r' > \$tmpfile && cat \$tmpfile > $script && rm \$tmpfile"
}
}

destroot {
@@ -63,7 +58,7 @@ destroot {

# Fix permissions on the scripts,
# and at the same time add symlinks to them
foreach f { grok groovy groovyc groovyConsole groovysh } {
foreach f { grok groovy groovyc groovyConsole groovysh startGroovy } {
file attributes ${target}/bin/${f} -permissions +x
system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${f}"
}

0 comments on commit 0f98fac

Please sign in to comment.
You can’t perform that action at this time.