2013-01-03 20:45:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-03-04 23:16:17 +00:00
|
|
|
class GitFlowAvhCompletion < Formula
|
|
|
|
homepage 'https://github.com/petervanderdoes/git-flow-completion'
|
2013-03-18 19:18:32 +00:00
|
|
|
url 'https://github.com/petervanderdoes/git-flow-completion/archive/0.4.2.tar.gz'
|
|
|
|
sha1 '5e311225fccc22e22c7f00abf8989c853bd2b48b'
|
2013-03-04 23:16:17 +00:00
|
|
|
|
|
|
|
head 'https://github.com/petervanderdoes/git-flow-completion.git', :branch => 'develop'
|
|
|
|
end
|
|
|
|
|
2013-01-03 20:45:39 +00:00
|
|
|
class GitFlowAvh < Formula
|
|
|
|
homepage 'https://github.com/petervanderdoes/gitflow'
|
2013-06-04 23:51:43 +00:00
|
|
|
url 'https://github.com/petervanderdoes/gitflow/archive/1.5.3.tar.gz'
|
|
|
|
sha1 '061dea5da1fb2c84a790be3563f08c043fb96f6e'
|
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"
|
2013-03-04 23:16:17 +00:00
|
|
|
|
|
|
|
GitFlowAvhCompletion.new('git-flow-avh-completion').brew 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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|