Ticket #38799: mosh-bash-completion.patch

File mosh-bash-completion.patch, 966 bytes (added by macports@…, 11 years ago)
  • Portfile

    old new  
    55
    66name                    mosh
    77version                 1.2.4
     8revision                1
    89categories              net
    910license                 GPL-3+
    1011platforms               darwin
     
    3132    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl5.12|" ${worksrcpath}/scripts/mosh
    3233}
    3334
     35variant bash_completion {
     36    depends_run-append path:etc/bash_completion:bash-completion
     37    post-destroot {
     38        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
     39        copy ${worksrcpath}/conf/bash_completion.d/mosh \
     40             ${destroot}${prefix}/etc/bash_completion.d/mosh
     41    }
     42}
     43
    3444livecheck.type          regex
    3545livecheck.url           ${homepage}
    3646livecheck.regex         "[quotemeta ${name}]-(\[0-9a-z.\]+)[quotemeta ${extract.suffix}]"