Ticket #29303: gant.diff

File gant.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    44
    55name                            gant
    66version                         1.9.4
     7revision                        1
    78categories                      java devel groovy
    89maintainers                     breskeby
     10supported_archs         noarch
     11
    912description                     A groovy based tool for scripting ant
    1013long_description        Gant is a tool for scripting Ant tasks using Groovy instead of XML \
    1114                                        to specify the logic. A Gant specification is a Groovy script and so \
     
    1720                                       
    1821homepage                        http://gant.codehaus.org/
    1922platforms                       darwin
    20 distname                        ${name}-${version}
    2123master_sites            http://dist.codehaus.org/gant/distributions
    2224checksums                       md5     b32fe6c76b27b25a8690c5213645c7e8 \
    2325                                        sha1 db0cebea84e145b700a14509b584b89b2e58afec \
    2426                                        rmd160 2f18244274e4c84b63e8f37e8bd4d89cdce60fdc
    25                                                
    26 worksrcdir                      ${name}-${version}
    27 set workTarget          ""
    2827
    2928use_zip                         yes
    30 use_bzip2                       no
    3129use_configure           no
    3230
    3331build.cmd                       true
     
    3937
    4038pre-destroot {
    4139        # Remove extraneous bat files
    42         foreach f [glob -directory ${worksrcpath}${workTarget}/bin *.bat] {
     40        foreach f [glob -directory ${worksrcpath}/bin *.bat] {
    4341                file delete $f
    4442        }
    4543}
     
    5856        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/gant"
    5957}
    6058
    61 post-activate {
    62                 ui_msg "****************************************************************************"
    63                 ui_msg "* Remember to set the environment variable GANT_HOME to the path to"
    64                 ui_msg "* the gant distribution: ${prefix}/share/java/${name}"
    65                 ui_msg "****************************************************************************"
    66  }
     59notes "
     60Remember to set the environment variable GANT_HOME to the path to\
     61the gant distribution: ${prefix}/share/java/${name}
     62"