Skip to content

Commit

Permalink
Update groovy --> 1.0-jsr-05
Browse files Browse the repository at this point in the history
  • Loading branch information
jdberry committed Mar 26, 2006
1 parent 68e02c1 commit 0f98fac
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions java/groovy/Portfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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 {
Expand All @@ -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}"
}
Expand Down

0 comments on commit 0f98fac

Please sign in to comment.