aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMislav Marohnić2013-12-22 02:18:21 +0100
committerMike McQuaid2013-12-22 11:02:02 +0000
commitda659a337292c0f3b5cbb5218c551b3a0bdb3969 (patch)
treeeb3ebe686108e913889416ebfff45f3327604203 /Library/Formula
parent98f557e3291e4deec5c43b39f7b653af62e2dc86 (diff)
downloadhomebrew-da659a337292c0f3b5cbb5218c551b3a0bdb3969.tar.bz2
hub 1.11.0
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com> Closes #25393.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hub.rb17
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
index ae06d0eb6..76e8421a7 100644
--- a/Library/Formula/hub.rb
+++ b/Library/Formula/hub.rb
@@ -2,19 +2,26 @@ require 'formula'
class Hub < Formula
homepage 'http://hub.github.com/'
- url 'https://github.com/github/hub/archive/v1.10.6.tar.gz'
- sha1 'e29d158c65a10ef3889f4af438bf1fb50fbd0536'
+ url 'https://github.com/github/hub/archive/v1.11.0.tar.gz'
+ sha1 'fea06d242af3be473b78bb738a04afc11ca4df21'
head 'https://github.com/github/hub.git'
+ option 'without-completions', 'Disable bash/zsh completions'
+
def install
+ ENV['GIT_DIR'] = downloader.cached_location/'.git' if build.head?
+
rake "install", "prefix=#{prefix}"
- 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
test do
HOMEBREW_REPOSITORY.cd do
- assert_equal 'bin/brew', `#{bin}/git ls-files -- bin`.strip
+ assert_equal 'bin/brew', `#{bin}/hub ls-files -- bin`.strip
end
end
end