2013-01-03 20:45:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitFlowAvh < Formula
|
|
|
|
homepage 'https://github.com/petervanderdoes/gitflow'
|
2013-11-17 00:22:07 +00:00
|
|
|
url 'https://github.com/petervanderdoes/gitflow/archive/1.7.0.tar.gz'
|
|
|
|
sha1 '666b01444de2e1b628f83fe1c8b5481b24156502'
|
2013-01-03 20:45:39 +00:00
|
|
|
|
2013-09-18 02:37:24 +00:00
|
|
|
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
|
2013-01-03 20:45:39 +00:00
|
|
|
|
|
|
|
depends_on 'gnu-getopt'
|
|
|
|
|
|
|
|
conflicts_with 'git-flow'
|
|
|
|
|
|
|
|
def install
|
2013-11-17 00:54:10 +00:00
|
|
|
system "make", "prefix=#{libexec}", "install"
|
|
|
|
(bin/'git-flow').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
export FLAGS_GETOPT_CMD=#{HOMEBREW_PREFIX}/opt/gnu-getopt/bin/getopt
|
|
|
|
exec "#{libexec}/bin/git-flow" "$@"
|
|
|
|
EOS
|
2013-03-04 23:16:17 +00:00
|
|
|
|
2013-09-18 02:37:24 +00:00
|
|
|
resource('completion').stage do
|
2013-05-03 18:03:31 +00:00
|
|
|
bash_completion.install "git-flow-completion.bash"
|
|
|
|
zsh_completion.install "git-flow-completion.zsh"
|
2013-03-04 23:16:17 +00:00
|
|
|
end
|
2013-01-03 20:45:39 +00:00
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:18 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/git-flow", "version"
|
2013-01-03 20:45:39 +00:00
|
|
|
end
|
|
|
|
end
|