homebrew-core/Formula/hub.rb
Mislav Marohnić cc83c47321 hub 1.10.4
Closes Homebrew/homebrew#16786.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-29 09:36:04 -08:00

26 lines
642 B
Ruby

require 'formula'
class Hub < Formula
homepage 'http://defunkt.io/hub/'
url 'https://github.com/defunkt/hub/tarball/v1.10.4'
sha1 'b43f69f20563cb779d77a6beaf773bad8c49ad4c'
head 'https://github.com/defunkt/hub.git'
def install
system rake_bin, "install", "prefix=#{prefix}"
(prefix+'etc/bash_completion.d').install 'etc/hub.bash_completion.sh'
(share+'zsh/site-functions').install 'etc/hub.zsh_completion' => '_hub'
end
def rake_bin
require 'rbconfig'
ruby_rake = File.join RbConfig::CONFIG['bindir'], 'rake'
if File.exist? ruby_rake
ruby_rake
else
'/usr/bin/rake'
end
end
end