diff options
| author | Owen Ou | 2014-10-20 15:03:44 -0700 |
|---|---|---|
| committer | Jack Nagel | 2014-10-20 20:30:30 -0500 |
| commit | a746c26f8a7a6dd64850ba2cb9e76363bfca41e0 (patch) | |
| tree | be4afa4055070e3157080ef6549d4b2c8871d4ab /Library/Formula | |
| parent | 290934c096c25482a89500c7ce1c95c7043e434c (diff) | |
| download | homebrew-a746c26f8a7a6dd64850ba2cb9e76363bfca41e0.tar.bz2 | |
Build `hub` HEAD with Go
The `hub` 2.2.0 branch has been [merged into master](https://github.com/github/hub/pull/641).
HEAD requires Go and a different script to build.
The 1.x stable build should still work before 2.2.0 is officially released.
Closes #33407.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hub.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb index 9dd1b7de1..f558be18e 100644 --- a/Library/Formula/hub.rb +++ b/Library/Formula/hub.rb @@ -4,14 +4,21 @@ class Hub < Formula homepage 'http://hub.github.com/' url 'https://github.com/github/hub/archive/v1.12.2.tar.gz' sha1 '65359d3dcc8e1a0986aab3726f6047bfb9df3d7c' - head 'https://github.com/github/hub.git', :branch => '1.12-stable' + + head do + url "https://github.com/github/hub.git" + depends_on "go" => :build + end option 'without-completions', 'Disable bash/zsh completions' def install - ENV['GIT_DIR'] = cached_download/'.git' if build.head? - - rake "install", "prefix=#{prefix}" + if build.head? + system "script/build" + bin.install "hub" + else + rake "install", "prefix=#{prefix}" + end if build.with? 'completions' bash_completion.install 'etc/hub.bash_completion.sh' |
