Ticket #16032: patch-mercurial-Portfile.diff

File patch-mercurial-Portfile.diff, 1.2 KB (added by paidhi@…, 16 years ago)

Patch for Portfile (devel/mercurial)

  • Portfile

    old new  
    1 # $Id: Portfile 37298 2008-06-02 19:08:55Z saispo@macports.org $
     1# $Id$
    22
    33PortSystem          1.0
    44PortGroup           python25 1.0
    55
    66name                mercurial
    77version             1.0.1
    8 revision            1
     8revision            2
    99categories          devel python
    1010maintainers         deric@macports.org
    1111description         A fast, lightweight, distributed SCM system written in \
     
    3131
    3232depends_lib-append  port:py25-zlib port:py25-hashlib port:py25-bz2
    3333
     34variant bash_completion description {Install mercurial bash-completion file} {
     35                                depends_run-append port:bash-completion
     36}
     37
    3438post-destroot {
    3539    # install html docs
    3640    xinstall -m 644 -W ${worksrcpath}/doc hg.1.html hgrc.5.html hgignore.5.html \
     
    4953        # copy hgweb.cgi hgwebdir.cgi
    5054        file copy ${worksrcpath}/hgweb.cgi ${destroot}${prefix}/share/${name}/
    5155        file copy ${worksrcpath}/hgwebdir.cgi ${destroot}${prefix}/share/${name}/
     56       
     57        if {[variant_isset bash_completion]} {
     58            xinstall -d ${destroot}${prefix}/etc/bash_completion.d
     59                copy ${worksrcpath}/contrib/bash_completion ${destroot}${prefix}/etc/bash_completion.d/mercurial
     60    }
    5261}