Ticket #2279: Portfile.diff

File Portfile.diff, 2.9 KB (added by james@…, 20 years ago)

Patch to Portfile

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/apache-ant/Portfile,v
    retrieving revision 1.16
    diff -u -r1.16 Portfile
     
    11# $Id: Portfile,v 1.16 2004/08/09 16:33:56 mww Exp $
    22
    33PortSystem 1.0
    4 name            apache-ant
    5 version         1.6.2
    6 categories      devel java
    7 maintainers     sean@fuzzymagic.com
    8 description     Java opensource build system
     4name                    apache-ant
     5version                 1.6.2
     6categories              devel java
     7maintainers             sean@fuzzymagic.com
     8description             Java opensource build system
    99long_description        Ant is a Java based build tool. In theory it is kind of like \
    10                         make without make's wrinkles. Ant uses XML build files that defines \
    11                         a set of targets. Each target has dependencies (other targets) and \
    12                         contains a set of tasks to perform.
     10                                make without make's wrinkles. Ant uses XML build files that define \
     11                                a set of targets. Each target has dependencies (other targets) and \
     12                                contains a set of tasks to perform.
    1313homepage        http://ant.apache.org/
    1414
    15 platforms       darwin freebsd
    16 master_sites    apache:ant/source
    17 checksums       md5 83c3adefdbf90bcbc4b804d4c55c0778
    18 distname        ${name}-${version}-src
    19 use_bzip2       yes
     15platforms               darwin freebsd
     16                               
     17distname                ${name}-${version}-bin
     18master_sites    apache:ant/
     19master_sites.mirror_subdir      binaries
     20checksums               md5 a568c7271c3f168771c0313926d060fa
    2021
    21 worksrcdir      ${name}-${version}
     22worksrcdir              ${name}-${version}
     23set workTarget  ""
    2224
     25use_bzip2               yes
    2326use_configure   no
    2427
    25 build.cmd       ./build.sh
    26 build.args      -Dchmod.fail=false -Ddist.name=${name}
    27 build.target    dist
     28build.cmd               ""
     29build.args              ""
     30build.target    ""     
    2831
    2932variant darwin {
    3033    extract.post_args   | gnutar -x
    3134    build.env           JAVA_HOME=/Library/Java/Home
    3235}
    3336
     37# Ant is installed from the binary (jar) distribution by default. Due to bootstrapping
     38# issues, the source variant generally doesn't build a very usable ant: the ant tasks
     39# (such as junit) are non-functional as their dependent support isn't available when ant
     40# is built, due to circular dependencies back to ant.
     41variant source {
     42        distname                                        ${name}-${version}-src
     43        master_sites.mirror_subdir      source 
     44        checksums                                       md5 83c3adefdbf90bcbc4b804d4c55c0778
     45        set workTarget                          /${name}
     46
     47        build.cmd               ./build.sh
     48        build.args              -Dchmod.fail=false -Ddist.name=${name}
     49        build.target    dist   
     50}
     51
    3452pre-destroot {
    35         cd ${worksrcpath}/${name}/bin
     53        cd ${worksrcpath}${workTarget}/bin
    3654        file delete ant.bat ant.cmd antRun.bat antenv.cmd \
    3755                envset.cmd lcp.bat runrc.cmd
    3856}
     57
    3958destroot        {
    4059        xinstall -m 755 -d ${destroot}${prefix}/share/java
    41         file copy ${worksrcpath}/${name} ${destroot}${prefix}/share/java/
     60        file copy ${worksrcpath}${workTarget} ${destroot}${prefix}/share/java/${name}
    4261        system "ln -fs ${prefix}/share/java/${name}/bin/ant \
    4362                ${destroot}${prefix}/bin/ant"
    4463}