homebrew-core/Formula/git-flow-avh.rb
Andrew Smith 532a48093e Fix incorrect update to git-flow-avh 1.5.1
Closes Homebrew/homebrew#18559.
Closes Homebrew/homebrew#18564.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-18 13:39:27 -05:00

40 lines
1.2 KiB
Ruby

require 'formula'
class GitFlowAvhCompletion < Formula
homepage 'https://github.com/petervanderdoes/git-flow-completion'
url 'https://github.com/petervanderdoes/git-flow-completion/tarball/0.4.2'
sha1 '0a36ae6fda83b6ba0251f4eea3a957f94f5467b7'
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.5.1.tar.gz'
sha1 'bb984d36ce1c89fc07877d9a3ebd3540633efd9a'
head 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop'
depends_on 'gnu-getopt'
conflicts_with 'git-flow'
def install
system "make", "prefix=#{prefix}", "install"
GitFlowAvhCompletion.new('git-flow-avh-completion').brew do
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
(share+'zsh/site-functions').install "git-flow-completion.zsh"
end
end
def caveats; <<-EOS.undent
Create a ~/.gitflow_export file with the content
export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt"
EOS
end
def test
system "#{bin}/git-flow version"
end
end