2011-03-10 05:11:03 +00:00
|
|
|
class Hub < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Add GitHub support to git on the command-line"
|
2015-04-14 08:35:29 +00:00
|
|
|
homepage "https://hub.github.com/"
|
2015-10-29 21:08:44 +00:00
|
|
|
url "https://github.com/github/hub/archive/v2.2.2.tar.gz"
|
|
|
|
sha256 "610572ee903aea1fa8622c16ab7ddef2bd1bfec9f4854447ab8e0fbdbe6a0cae"
|
2015-02-14 21:28:38 +00:00
|
|
|
head "https://github.com/github/hub.git"
|
2015-01-14 08:41:54 +00:00
|
|
|
|
2015-02-14 22:03:55 +00:00
|
|
|
bottle do
|
2015-10-29 21:30:26 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "d2b12e11689b28b7a4904ddbd16c56f467494c7ebfd87ceb45fc36af7e30ed06" => :el_capitan
|
|
|
|
sha256 "fdce2380822cd7aa521ebb5457aa7fa7e475973d73af495d4c177ac98774d30c" => :yosemite
|
|
|
|
sha256 "7ebe3c35adda13a0e8921e63f9dcd2a94b05c2b78eb2400504d4871a72ef07f8" => :mavericks
|
2015-02-14 22:03:55 +00:00
|
|
|
end
|
|
|
|
|
2015-01-14 08:41:54 +00:00
|
|
|
option "without-completions", "Disable bash/zsh completions"
|
2013-12-22 01:18:21 +00:00
|
|
|
|
2015-02-14 21:28:38 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2009-12-11 16:13:57 +00:00
|
|
|
def install
|
2015-02-14 21:28:38 +00:00
|
|
|
system "script/build"
|
|
|
|
bin.install "hub"
|
|
|
|
man1.install Dir["man/*"]
|
2013-12-22 01:18:21 +00:00
|
|
|
|
2015-01-14 08:41:54 +00:00
|
|
|
if build.with? "completions"
|
|
|
|
bash_completion.install "etc/hub.bash_completion.sh"
|
|
|
|
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
|
2013-12-22 01:18:21 +00:00
|
|
|
end
|
2012-03-20 22:51:50 +00:00
|
|
|
end
|
|
|
|
|
2013-01-27 22:38:17 +00:00
|
|
|
test do
|
|
|
|
HOMEBREW_REPOSITORY.cd do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "bin/brew", shell_output("#{bin}/hub ls-files -- bin").strip
|
2012-07-06 08:37:57 +00:00
|
|
|
end
|
|
|
|
end
|
2009-12-11 16:13:57 +00:00
|
|
|
end
|