Ticket #39843: Portfile.patch

File Portfile.patch, 1.5 KB (added by neverpanic (Clemens Lang), 11 years ago)
  • Portfile

     
    7373destroot.target     install
    7474pre-destroot {
    7575    eval destroot.args  ${build.args}
    76     copy ${worksrcpath}/contrib/subtree/git-subtree.1 ${workpath}/man1
     76    xinstall -m 644 ${worksrcpath}/contrib/subtree/git-subtree.1 ${workpath}/man1
    7777}
    7878
    7979set docdestroot ${destroot}${prefix}/share/doc/${name}
     
    108108    xinstall -m 755 ${worksrcpath}/contrib/subtree/git-subtree.sh \
    109109        ${destroot}${prefix}/libexec/git-core/git-subtree
    110110
    111     file copy ${worksrcpath}/contrib ${share_path}
     111    file delete -force ${share_path}/contrib
     112    copy ${worksrcpath}/contrib ${share_path}
    112113
    113114}
    114115
     
    147148    }
    148149
    149150    pre-destroot {
    150         copy ${worksrcpath}/contrib/subtree/git-subtree.html ${workpath}/htmldocs
     151        xinstall -m 644 ${worksrcpath}/contrib/subtree/git-subtree.html ${workpath}/htmldocs
    151152    }
    152153
    153154    post-destroot {
    154155        foreach f [glob ${workpath}/htmldocs/*] {
    155             file copy ${f} ${docdestroot}
     156            file delete -force "${docdestroot}/[file tail ${f}]"
     157            copy ${f} ${docdestroot}
    156158        }
    157159    }
    158160}
     
    197199    pre-destroot {
    198200        xinstall -m 755 "${worksrcpath}/contrib/credential/osxkeychain/git-credential-osxkeychain" \
    199201            "${destroot}${prefix}/bin/"
    200         system -W "${worksrcpath}/contrib/credential/osxkeychain" "make clean"
    201202    }
    202203}
    203204