diff options
| author | Jingwen Owen Ou | 2015-02-14 13:28:38 -0800 |
|---|---|---|
| committer | Jack Nagel | 2015-02-14 21:21:00 -0500 |
| commit | 69096c85c710679a83fbc32d9950d42668707aec (patch) | |
| tree | 0df645add877f38750b3cd436d7591304304d59d /Library/Formula | |
| parent | 2bdb565d1fcc53ccf622ffe0c9659616ae161172 (diff) | |
| download | homebrew-69096c85c710679a83fbc32d9950d42668707aec.tar.bz2 | |
hub 2.2.0
https://github.com/github/hub/releases/tag/v2.2.0
Closes #36821.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hub.rb | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb index 60210221f..282ecd540 100644 --- a/Library/Formula/hub.rb +++ b/Library/Formula/hub.rb @@ -1,31 +1,17 @@ class Hub < Formula homepage "http://hub.github.com/" - url "https://github.com/github/hub/archive/v1.12.4.tar.gz" - sha1 "25135167108cd777ba6ec2dd5a9a25e248d98d4b" - - head do - url "https://github.com/github/hub.git" - depends_on "go" => :build - end - - devel do - url "https://github.com/github/hub/archive/v2.2.0-rc1.tar.gz" - sha1 "029d154ce0f9c4999e4dd6ef23eab5e411370c4f" - version "2.2.0-rc1" - - depends_on "go" => :build - end + url "https://github.com/github/hub/archive/v2.2.0.tar.gz" + sha1 "29744a370b71e5b054fd91e59472de6dbe573a91" + head "https://github.com/github/hub.git" option "without-completions", "Disable bash/zsh completions" + depends_on "go" => :build + def install - if build.head? || build.devel? - system "script/build" - bin.install "hub" - man1.install Dir["man/*"] - else - rake "install", "prefix=#{prefix}" - end + system "script/build" + bin.install "hub" + man1.install Dir["man/*"] if build.with? "completions" bash_completion.install "etc/hub.bash_completion.sh" |
