homebrew-core/Formula/git-flow.rb

29 lines
883 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class GitFlowCompletion < Formula
homepage 'https://github.com/bobthecow/git-flow-completion'
url 'https://github.com/bobthecow/git-flow-completion/tarball/0.4.2'
sha1 '49316a92b667bc28fb9449824a4384a511861924'
2011-05-27 05:02:55 +00:00
head 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
end
2011-03-10 05:11:03 +00:00
class GitFlow < Formula
homepage 'https://github.com/nvie/gitflow'
# Use the tag instead of the tarball to get submodules
2011-05-27 05:02:55 +00:00
url 'https://github.com/nvie/gitflow.git', :tag => '0.4.1'
version '0.4.1'
head 'https://github.com/nvie/gitflow.git', :branch => 'develop'
def install
system "make", "prefix=#{prefix}", "install"
GitFlowCompletion.new('git-flow-completion').brew do
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
(share+'zsh/site-functions').install "git-flow-completion.zsh"
end
end
end