2013-01-03 20:45:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitFlowAvh < Formula
|
|
|
|
homepage 'https://github.com/petervanderdoes/gitflow'
|
2013-02-25 19:27:47 +00:00
|
|
|
url 'https://github.com/petervanderdoes/gitflow/archive/1.5.0.tar.gz'
|
|
|
|
sha1 '3a9ac53606ab3306da53cba2abe9779b778dd8e0'
|
2013-01-03 20:45:39 +00:00
|
|
|
|
|
|
|
head 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop'
|
|
|
|
|
|
|
|
depends_on 'gnu-getopt'
|
|
|
|
|
|
|
|
conflicts_with 'git-flow'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Create a ~/.gitflow_export file with the content
|
2013-01-31 00:22:46 +00:00
|
|
|
export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt"
|
2013-01-03 20:45:39 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/git-flow version"
|
|
|
|
end
|
|
|
|
end
|