homebrew-core/Formula/hub.rb

24 lines
639 B
Ruby
Raw Normal View History

2009-12-11 16:13:57 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Hub < Formula
url 'https://github.com/defunkt/hub/tarball/v1.8.4'
homepage 'http://defunkt.io/hub/'
2011-05-27 05:02:55 +00:00
head 'https://github.com/defunkt/hub.git'
md5 '1ca041817c014d2d3a5267f2aed4157b'
2009-12-11 16:13:57 +00:00
def install
system "rake", "install", "prefix=#{prefix}"
(prefix+'etc/bash_completion.d').install 'etc/hub.bash_completion.sh'
(share+'zsh/functions').install 'etc/hub.zsh_completion' => '_hub'
end
def caveats; <<-EOS.undent
Bash completion has been installed to:
#{etc}/bash_completion.d
zsh completion has been installed to:
#{HOMEBREW_PREFIX}/share/zsh/functions
EOS
2009-12-11 16:13:57 +00:00
end
end