Changeset 17177 for trunk/dports
- Timestamp:
- Mar 26, 2006, 5:00:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/java/groovy/Portfile
r13920 r17177 1 # $Id: Portfile,v 1. 4 2005/09/06 04:41:53jberry Exp $1 # $Id: Portfile,v 1.5 2006/03/26 17:00:05 jberry Exp $ 2 2 3 3 PortSystem 1.0 4 4 5 5 name groovy 6 version 1.0-jsr-0 36 version 1.0-jsr-05 7 7 8 8 categories java lang … … 24 24 or it can be used dynamically as an alternative language such \ 25 25 as for scripting Java objects, templating or writing unit test cases. 26 homepage http://groovy.codehaus.org/ 26 27 27 28 distname ${name}-${version}-src 28 29 master_sites http://dist.codehaus.org/groovy/distributions/ 29 checksums md5 54d7c8347ccf31ea61b7ec642ce2c73130 checksums md5 6e3a9f279d3b4d169b7cd75624a6aac7 30 31 31 32 depends_build bin:ant:apache-ant \ … … 42 43 post-patch { 43 44 reinplace /<wiki2testcase/d ${worksrcpath}/maven.xml 44 45 # Fix improper DOS line endings on some of the script files46 foreach f { groovy groovyConsole groovysh } {47 set script "${worksrcpath}/src/bin/$f"48 system "tmpfile=`mktemp -t groovy` && cat $script | tr -d '\r' > \$tmpfile && cat \$tmpfile > $script && rm \$tmpfile"49 }50 45 } 51 46 … … 64 59 # Fix permissions on the scripts, 65 60 # and at the same time add symlinks to them 66 foreach f { grok groovy groovyc groovyConsole groovysh } {61 foreach f { grok groovy groovyc groovyConsole groovysh startGroovy } { 67 62 file attributes ${target}/bin/${f} -permissions +x 68 63 system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${f}"
Note: See TracChangeset
for help on using the changeset viewer.