[91350] trunk/dports/devel/hub/Portfile
singingwolfboy at macports.org
singingwolfboy at macports.org
Fri Mar 30 09:03:18 PDT 2012
Revision: 91350
https://trac.macports.org/changeset/91350
Author: singingwolfboy at macports.org
Date: 2012-03-30 09:03:18 -0700 (Fri, 30 Mar 2012)
Log Message:
-----------
hub: install bash_completion and zsh_completion files
Modified Paths:
--------------
trunk/dports/devel/hub/Portfile
Modified: trunk/dports/devel/hub/Portfile
===================================================================
--- trunk/dports/devel/hub/Portfile 2012-03-30 15:49:18 UTC (rev 91349)
+++ trunk/dports/devel/hub/Portfile 2012-03-30 16:03:18 UTC (rev 91350)
@@ -5,6 +5,7 @@
PortGroup github 1.0
github.setup defunkt hub 1.8.4 v
+revision 1
description git-wrapper for GitHub specific functionality
long_description hub is a command line utility which adds GitHub knowledge to git.\
It can be used on its own or as a git wrapper.
@@ -29,6 +30,14 @@
destroot.cmd rake
destroot.args prefix=${destroot}${prefix}
+post-destroot {
+ set bash-completions ${destroot}${prefix}/etc/bash_completion.d
+ xinstall -d ${bash-completions}
+ xinstall ${worksrcpath}/etc/hub.bash_completion.sh ${destroot}${prefix}/etc/bash_completion.d/hub
+ set site-functions ${destroot}${prefix}/share/zsh/site-functions
+ xinstall -d ${site-functions}
+ xinstall ${worksrcpath}/etc/hub.zsh_completion ${site-functions}/
+}
notes "
To use 'hub' as a true git wrapper add the following line to your .bashrc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120330/4176a8d4/attachment-0001.html>
More information about the macports-changes
mailing list