Ticket #39314: mercurial-2.6.2+bash-completion.patch

File mercurial-2.6.2+bash-completion.patch, 1.5 KB (added by robsonpeixoto@…, 11 years ago)
  • Portfile

     
    55PortGroup           python 1.0
    66PortGroup           bitbucket 1.0
    77
    8 bitbucket.setup     mirror mercurial 2.6.1
     8bitbucket.setup     mirror mercurial 2.6.2
    99categories          devel python
    1010license             GPL-2+
    1111maintainers         deric sean
     
    2626
    2727homepage            http://www.selenic.com/mercurial/
    2828platforms           darwin
    29 checksums           rmd160  84fd8b49cd776952f25891650cf23881fe9c5db8 \
    30                     sha256  099994afc109bc2c1a05bdd7e7ee9a6cba2d31172f045fcae5ef047e37835dc6
     29checksums           rmd160  40dea321aee1cfd346888db9ba8dde9749e39fc5 \
     30                    sha256  ec549bf3302bc1e80fa7dc698331c17729677672870653186dd0e5f938105df8
    3131depends_run         port:curl-ca-bundle
    3232
    3333patchfiles          patch-setup.py.diff
     
    7070    file copy ${worksrcpath}/contrib/hgk ${destroot}${prefix}/bin/hgk
    7171
    7272    if {[variant_isset bash_completion]} {
    73         xinstall -d ${destroot}${prefix}/etc/bash_completion.d
    74         copy ${worksrcpath}/contrib/bash_completion ${destroot}${prefix}/etc/bash_completion.d/mercurial
     73        set completions_path ${destroot}${prefix}/share/bash-completion/completions
     74        xinstall -d ${completions_path}
     75        xinstall -m 644 ${worksrcpath}/contrib/bash_completion ${completions_path}/mercurial
    7576    }
    7677
    7778    if {[variant_isset zsh_completion]} {