homebrew-core/Formula/hub.rb
Mislav Marohnić eee879167c hub: stable branch for HEAD.
Master branch is becoming very unstable really soon and switching from
Ruby to Go, so people that use `brew install hub --HEAD` will have a
really rough time during that.

Closes Homebrew/homebrew#31138.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-26 08:12:30 +01:00

27 lines
729 B
Ruby

require 'formula'
class Hub < Formula
homepage 'http://hub.github.com/'
url 'https://github.com/github/hub/archive/v1.12.2.tar.gz'
sha1 '65359d3dcc8e1a0986aab3726f6047bfb9df3d7c'
head 'https://github.com/github/hub.git', :branch => '1.12-stable'
option 'without-completions', 'Disable bash/zsh completions'
def install
ENV['GIT_DIR'] = cached_download/'.git' if build.head?
rake "install", "prefix=#{prefix}"
if build.with? 'completions'
bash_completion.install 'etc/hub.bash_completion.sh'
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
end
end
test do
HOMEBREW_REPOSITORY.cd do
assert_equal 'bin/brew', `#{bin}/hub ls-files -- bin`.strip
end
end
end