[40105] trunk/dports/devel/mercurial/Portfile
simon at macports.org
simon at macports.org
Sat Sep 20 13:10:06 PDT 2008
Revision: 40105
http://trac.macports.org/changeset/40105
Author: simon at macports.org
Date: 2008-09-20 13:10:05 -0700 (Sat, 20 Sep 2008)
Log Message:
-----------
devel/mercurial: Add variant for zsh completion.
Modified Paths:
--------------
trunk/dports/devel/mercurial/Portfile
Modified: trunk/dports/devel/mercurial/Portfile
===================================================================
--- trunk/dports/devel/mercurial/Portfile 2008-09-20 20:09:50 UTC (rev 40104)
+++ trunk/dports/devel/mercurial/Portfile 2008-09-20 20:10:05 UTC (rev 40105)
@@ -53,8 +53,18 @@
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
copy ${worksrcpath}/contrib/bash_completion ${destroot}${prefix}/etc/bash_completion.d/mercurial
}
+
+ if {[variant_isset zsh_completion]} {
+ set site-functions ${destroot}${prefix}/share/zsh/site-functions
+ xinstall -d ${site-functions}
+ xinstall ${worksrcpath}/contrib/zsh_completion ${site-functions}/_mercurial
+ }
}
variant bash_completion description {Install mercurial bash-completion file} {
depends_run-append port:bash-completion
}
+
+variant zsh_completion description {Install mercurial zsh completion file} {
+ depends_run-append path:${prefix}/bin/zsh:zsh
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080920/08a1814a/attachment.html
More information about the macports-changes
mailing list