Ticket #39310: hub-1.10.6+bash-completion.patch

File hub-1.10.6+bash-completion.patch, 1.6 KB (added by robsonpeixoto@…, 11 years ago)
  • Portfile

     
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        defunkt hub 1.10.4 v
     7github.setup        defunkt hub 1.10.6 v
    88description         git-wrapper for GitHub specific functionality
    99long_description    hub is a command line utility which adds GitHub knowledge to git.\
    1010                    It can be used on its own or as a git wrapper.
     
    1616
    1717homepage            http://defunkt.io/hub/
    1818
    19 checksums           rmd160  63c95c572187eaa08f737dfeb41bf5d7767d0907 \
    20                     sha256  13ef06c55573fe159be3ae6f3ee92522e0e094e4a4e2f8eb06ca4052eace55ec
     19checksums           rmd160  ccde1711f3a3a9e70d8ca9353cb705d0f9a51883 \
     20                    sha256  2848e28efaddb6c69686fdc527ae5117a5248f51d7ca1578e70a10859b3e5894
    2121
    2222depends_build       bin:rake:rb-rake
    2323
     
    3232post-destroot {
    3333    set bash-completions ${destroot}${prefix}/etc/bash_completion.d
    3434    xinstall -d ${bash-completions}
    35     xinstall ${worksrcpath}/etc/hub.bash_completion.sh ${destroot}${prefix}/etc/bash_completion.d/hub
     35       
     36    set completions_path ${destroot}${prefix}/share/bash-completion/completions
     37    xinstall -d ${completions_path}
     38    xinstall -m 644 ${worksrcpath}/etc/hub.bash_completion.sh ${completions_path}/hub
     39
    3640    set site-functions ${destroot}${prefix}/share/zsh/site-functions
    3741    xinstall -d ${site-functions}
    3842    xinstall ${worksrcpath}/etc/hub.zsh_completion ${site-functions}/