homebrew-core/Formula/hub.rb

21 lines
517 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
homepage 'http://defunkt.io/hub/'
url 'https://github.com/defunkt/hub/tarball/v1.10.5'
sha1 '397d70213e653c6a503d64e95826c696dc6e099e'
head 'https://github.com/defunkt/hub.git'
2009-12-11 16:13:57 +00:00
def install
rake "install", "prefix=#{prefix}"
bash_completion.install 'etc/hub.bash_completion.sh'
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
end
test do
HOMEBREW_REPOSITORY.cd do
`#{bin}/hub ls-files -- bin`.chomp == 'bin/brew'
end
end
2009-12-11 16:13:57 +00:00
end