aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-09-17 21:25:42 -0500
committerJack Nagel2013-09-17 21:29:56 -0500
commit7b25f5c7a7064ef0dda0055f8032c494ecf1189b (patch)
treee53539e3f6563686749c7464c08fc9957778342f /Library/Formula
parentbf6333c2195e3436d632b5dfc9fd06a95e5a4e77 (diff)
downloadhomebrew-7b25f5c7a7064ef0dda0055f8032c494ecf1189b.tar.bz2
git-flow: use resources
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/git-flow.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/Library/Formula/git-flow.rb b/Library/Formula/git-flow.rb
index 992390ed1..21c7a82d8 100644
--- a/Library/Formula/git-flow.rb
+++ b/Library/Formula/git-flow.rb
@@ -1,20 +1,23 @@
require 'formula'
-class GitFlowCompletion < Formula
- homepage 'https://github.com/bobthecow/git-flow-completion'
- url 'https://github.com/bobthecow/git-flow-completion/archive/0.4.2.2.tar.gz'
- sha1 'd6a041b22ebdfad40efd3dedafd84c020d3f4cb4'
-
- head 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
-end
-
class GitFlow < Formula
homepage 'https://github.com/nvie/gitflow'
# Use the tag instead of the tarball to get submodules
url 'https://github.com/nvie/gitflow.git', :tag => '0.4.1'
- head 'https://github.com/nvie/gitflow.git', :branch => 'develop'
+ head do
+ url 'https://github.com/nvie/gitflow.git', :branch => 'develop'
+
+ resource 'completion' do
+ url 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
+ end
+ end
+
+ resource 'completion' do
+ url 'https://github.com/bobthecow/git-flow-completion/archive/0.4.2.2.tar.gz'
+ sha1 'd6a041b22ebdfad40efd3dedafd84c020d3f4cb4'
+ end
conflicts_with 'git-flow-avh'
@@ -22,7 +25,7 @@ class GitFlow < Formula
system "make", "prefix=#{libexec}", "install"
bin.write_exec_script libexec/'bin/git-flow'
- GitFlowCompletion.new('git-flow-completion').brew do
+ resource('completion').stage do
bash_completion.install "git-flow-completion.bash"
zsh_completion.install "git-flow-completion.zsh"
end