Message info
 
To:macports-changes@lists.macosforge.org From:singingwolfboy@macports.org Subject:[91350] trunk/dports/devel/hub/Portfile Date:Fri, 30 Mar 2012 09:03:18 -0700 (PDT)
 

Revision
91350
Author
singingwolfboy@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

Diff

Modified: trunk/dports/devel/hub/Portfile (91349 => 91350)


--- 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