blob: eb9b0ca35642a66afdfad412ab1966d36e16901e (
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 "http://hub.github.com/"
url "https://github.com/github/hub/archive/v2.2.0.tar.gz"
sha1 "29744a370b71e5b054fd91e59472de6dbe573a91"
head "https://github.com/github/hub.git"
bottle do
cellar :any
sha1 "e1473bd03a9a3d3a91ad823415d4e468d63e491b" => :yosemite
sha1 "cbe513090da3faef854e43b0d0393708e7551500" => :mavericks
sha1 "4ab401c95fadce34df9175188df237bf074f8f75" => :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
|