blob: 7c6cc83b2fa27439074f14e427a7a30e67b2c3be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
class Hub < Formula
homepage "https://hub.github.com/"
url "https://github.com/github/hub/archive/v2.2.1.tar.gz"
sha1 "c64e473a36aabf71ecc39395b88c6993d4e12873"
head "https://github.com/github/hub.git"
bottle do
cellar :any
sha256 "ce82b60ae28c9d788e816276b12086b91e68c1c15b90b638fa380326e3846b66" => :yosemite
sha256 "b995e7d96af5d5ac27236fd3317b24eccb89cbb50b3c02a77c49d023d8d27334" => :mavericks
sha256 "00bfe4481c997341e41a564fa5f32abc87ca1ce735c7afede826c6d491863e81" => :mountain_lion
end
option "without-completions", "Disable bash/zsh completions"
depends_on "go" => :build
def install
system "script/build"
bin.install "hub"
man1.install Dir["man/*"]
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", shell_output("#{bin}/hub ls-files -- bin").strip
end
end
end
|