diff options
Diffstat (limited to 'Library/Formula/git-flow-avh.rb')
| -rw-r--r-- | Library/Formula/git-flow-avh.rb | 23 |
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 |
