2010-04-07 22:24:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitFlow < Formula
|
2012-02-10 06:41:56 +00:00
|
|
|
homepage 'https://github.com/nvie/gitflow'
|
2012-03-01 14:57:32 +00:00
|
|
|
|
2012-06-15 22:50:01 +00:00
|
|
|
# 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'
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2013-09-18 02:25:42 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/nvie/gitflow.git', :branch => 'develop'
|
|
|
|
|
|
|
|
resource 'completion' do
|
|
|
|
url 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resource 'completion' do
|
|
|
|
url 'https://github.com/bobthecow/git-flow-completion/archive/0.4.2.2.tar.gz'
|
|
|
|
sha1 'd6a041b22ebdfad40efd3dedafd84c020d3f4cb4'
|
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2013-01-03 20:45:39 +00:00
|
|
|
conflicts_with 'git-flow-avh'
|
|
|
|
|
2010-04-07 22:24:11 +00:00
|
|
|
def install
|
2013-06-29 15:53:35 +00:00
|
|
|
system "make", "prefix=#{libexec}", "install"
|
|
|
|
bin.write_exec_script libexec/'bin/git-flow'
|
2010-08-19 21:49:33 +00:00
|
|
|
|
2013-09-18 02:25:42 +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"
|
2010-08-19 21:49:33 +00:00
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
end
|
|
|
|
end
|