aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-09-17 21:37:24 -0500
committerJack Nagel2013-09-17 21:37:24 -0500
commit7437bd5a31e3b8916c7250ff67ea7d07a3c4114f (patch)
tree9d8c578963f5da95581d02d57bff966b11cf5f9d /Library
parentb712c6a687591b737f70771c95343afe9a0e5f32 (diff)
downloadhomebrew-7437bd5a31e3b8916c7250ff67ea7d07a3c4114f.tar.bz2
git-flow-avh: use resources
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git-flow-avh.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/Library/Formula/git-flow-avh.rb b/Library/Formula/git-flow-avh.rb
index ae1f5b152..9ea90bbe2 100644
--- a/Library/Formula/git-flow-avh.rb
+++ b/Library/Formula/git-flow-avh.rb
@@ -1,19 +1,22 @@
require 'formula'
-class GitFlowAvhCompletion < Formula
- homepage 'https://github.com/petervanderdoes/git-flow-completion'
- url 'https://github.com/petervanderdoes/git-flow-completion/archive/0.5.1.tar.gz'
- sha1 'e29b79629323dc9a10e7b8ddca1ec00d51f62929'
-
- head 'https://github.com/petervanderdoes/git-flow-completion.git', :branch => 'develop'
-end
-
class GitFlowAvh < Formula
homepage 'https://github.com/petervanderdoes/gitflow'
url 'https://github.com/petervanderdoes/gitflow/archive/1.6.1.tar.gz'
sha1 '15c76911026fa648356d24bf53a1875ebb729857'
- head 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop'
+ head do
+ url 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop'
+
+ resource 'completion' do
+ url 'https://github.com/petervanderdoes/git-flow-completion.git', :branch => 'develop'
+ end
+ end
+
+ resource 'completion' do
+ url 'https://github.com/petervanderdoes/git-flow-completion/archive/0.5.1.tar.gz'
+ sha1 'e29b79629323dc9a10e7b8ddca1ec00d51f62929'
+ end
depends_on 'gnu-getopt'
@@ -22,7 +25,7 @@ class GitFlowAvh < Formula
def install
system "make", "prefix=#{prefix}", "install"
- GitFlowAvhCompletion.new('git-flow-avh-completion').brew do
+ resource('completion').stage do
bash_completion.install "git-flow-completion.bash"
zsh_completion.install "git-flow-completion.zsh"
end