25 | | conflicts groovy |
26 | | distname groovy-src-${version} |
27 | | master_sites http://dist.codehaus.org/groovy/distributions/ |
28 | | checksums md5 5633778ee6d6c108cb343d74f2607167 \ |
29 | | sha1 d6bc8f12953e0af0d82043f42f09d5a9326cbbc0 \ |
30 | | rmd160 315f4515f72fe12f478a1ec6b9bcf759e85bc5c1 |
31 | | use_configure no |
32 | | worksrcdir groovy-${version} |
33 | | patchfiles patch-build-maven.xml.diff patch-settings.xml.diff |
34 | | extract.suffix .zip |
35 | | extract.cmd unzip |
36 | | extract.pre_args -qu |
37 | | extract.post_args "-d ${workpath}" |
38 | | #extract yes |
39 | | #use_zip yes |
40 | | |
41 | | build.cmd ant |
42 | | build.target install -DskipTests=true |
43 | | destroot { |
44 | | set target ${destroot}${prefix}/share/java/groovy |
45 | | |
46 | | # Create the target java directory |
47 | | xinstall -m 755 -d ${destroot}${prefix}/share/java |
48 | | |
49 | | # Copy in our directory tree |
50 | | file copy ${worksrcpath}/target/install ${target} |
51 | | |
52 | | # Remove .bat files |
53 | | foreach f [glob -directory ${target}/bin *.bat] { file delete $f } |
54 | | # Fix permissions on the scripts, |
55 | | # and at the same time add symlinks to them |
56 | | foreach f { grape groovy groovyc groovyConsole groovysh java2groovy startGroovy } { |
57 | | file attributes ${target}/bin/${f} -permissions +x |
58 | | system "cd ${destroot}${prefix}/bin && ln -s ../share/java/groovy/bin/${f}" |
59 | | } |
60 | | } |