Ticket #41446: groovy-devel-obsolete.patch

File groovy-devel-obsolete.patch, 2.6 KB (added by robsonpeixoto@…, 10 years ago)
  • Portfile

     
    44
    55name            groovy-devel
    66version         2.0.0-beta-2
     7revision        1
     8replaced_by     groovy
     9PortGroup       obsolete 1.0
    710categories      java lang
    811maintainers     breskeby
    912platforms       darwin
     
    2225                or it can be used dynamically as an alternative language such \
    2326                as for scripting Java objects, templating or writing unit test cases.
    2427homepage        http://groovy.codehaus.org/
    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 }
  • files/patch-config-maven-groovy-tools.pom.diff

     
    1 --- config/maven/groovy-tools.pom.orig  2009-10-12 21:15:38.000000000 +0200
    2 +++ config/maven/groovy-tools.pom       2009-11-20 21:18:31.000000000 +0100
    3 @@ -65,7 +65,7 @@
    4          <dependency>
    5              <groupId>biz.aQute</groupId>
    6              <artifactId>bnd</artifactId>
    7 -            <version>0.0.342</version>
    8 +            <version>0.0.378</version>
    9          </dependency>
    10      </dependencies>
    11      <repositories>