aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-14 09:41:54 +0100
committerMike McQuaid2015-01-14 12:34:44 +0000
commitda75dd806e6d6f5c0acbcab8562d73748e549c20 (patch)
tree73ed7472eceee48eccde080d9a46fb761fdad04d /Library/Formula
parent748c86c89c271021cc3dd769523022e4955f9c81 (diff)
downloadhomebrew-da75dd806e6d6f5c0acbcab8562d73748e549c20.tar.bz2
hub: devel added
Closes #35863. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hub.rb26
1 files changed, 16 insertions, 10 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
index 9b9de5d03..6facd0e3c 100644
--- a/Library/Formula/hub.rb
+++ b/Library/Formula/hub.rb
@@ -1,19 +1,25 @@
-require 'formula'
-
class Hub < Formula
- homepage 'http://hub.github.com/'
- url 'https://github.com/github/hub/archive/v1.12.4.tar.gz'
- sha1 '25135167108cd777ba6ec2dd5a9a25e248d98d4b'
+ 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
- option 'without-completions', 'Disable bash/zsh completions'
+ 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
+
+ option "without-completions", "Disable bash/zsh completions"
def install
- if build.head?
+ if build.head? || build.devel?
ENV["GIT_DIR"] = cached_download/".git"
system "script/build"
bin.install "hub"
@@ -21,9 +27,9 @@ class Hub < Formula
rake "install", "prefix=#{prefix}"
end
- if build.with? 'completions'
- bash_completion.install 'etc/hub.bash_completion.sh'
- zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
+ if build.with? "completions"
+ bash_completion.install "etc/hub.bash_completion.sh"
+ zsh_completion.install "etc/hub.zsh_completion" => "_hub"
end
end