Ticket #47224: update-hub-to2.2.0.2.diff

File update-hub-to2.2.0.2.diff, 2.0 KB (added by grimreaper (Eitan Adler), 9 years ago)
  • Portfile

     
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        github hub 1.12.4 v
     7github.setup        github hub 2.2.0 v
    88revision            0
    99categories          devel
    1010platforms           darwin
    long_description \ 
    1919
    2020homepage            http://defunkt.io/hub/
    2121
    22 checksums           rmd160  32aae29c3abd45185dcab72bd055300ac6c9bc0b \
    23                     sha256  54da3c0a3cd0f1e4c36942150ce2bca033adfbc0544d0fc06fa107c515b47555
     22checksums           rmd160  6be45d60ef775c7833214427dc3723cde2fc9528 \
     23                    sha256  cd1fb034c7793fd0f4fe1419eb253602accf0f9c051544112cc5d6fa6b449f26
    2424
    25 depends_build       bin:rake:rb-rake
     25build.cmd           ./script/build
     26build.target        {}
    2627
    27 depends_lib         port:git
     28depends_build       port:go
    2829
     30depends_lib         port:git \
     31                    port:go
     32
    2933use_configure       no
    3034
    31 # Stealth update; remove this with the next version update
    32 dist_subdir         ${name}/${version}_1
     35installs_libs       no
    3336
    34 build {}
    35 
    36 destroot.cmd        rake
    3737destroot.args       prefix=${prefix}
    38 post-destroot {
     38destroot {
     39    xinstall -W ${worksrcpath} -m 0755 hub ${destroot}${prefix}/bin
    3940    set bash-completions ${destroot}${prefix}/share/bash-completion/completions
    4041    xinstall -d ${bash-completions}
    41     xinstall ${worksrcpath}/etc/hub.bash_completion.sh ${bash-completions}/hub
     42    xinstall -W ${worksrcpath} etc/hub.bash_completion.sh ${bash-completions}/hub
    4243    set site-functions ${destroot}${prefix}/share/zsh/site-functions
    4344    xinstall -d ${site-functions}
    44     xinstall ${worksrcpath}/etc/hub.zsh_completion ${site-functions}/
     45    xinstall -W ${worksrcpath} etc/hub.zsh_completion ${site-functions}/
    4546}
    4647
    4748notes "
    48 To use 'hub' as a true git wrapper add the following line to your .bashrc
     49To use 'hub' as a true git wrapper add the following line to your .zshrc or .bashrc
    4950
    5051alias git=hub
    5152