2010-04-07 22:24:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitFlowCompletion < Formula
|
2012-02-10 06:41:56 +00:00
|
|
|
homepage 'https://github.com/bobthecow/git-flow-completion'
|
2012-03-01 14:57:32 +00:00
|
|
|
url 'https://github.com/bobthecow/git-flow-completion/tarball/0.4.1.0'
|
|
|
|
md5 '95c05d1a278c1c41067bd7cc6c281ecd'
|
2012-02-10 06:41:56 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
|
2010-08-19 21:49:33 +00:00
|
|
|
end
|
|
|
|
|
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
|
|
|
|
|
|
|
# Use the tag instead of the tarball to get the submodule
|
2011-05-27 05:02:55 +00:00
|
|
|
url 'https://github.com/nvie/gitflow.git', :tag => '0.4.1'
|
2011-02-14 06:58:27 +00:00
|
|
|
version '0.4.1'
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2012-02-10 06:41:56 +00:00
|
|
|
head 'https://github.com/nvie/gitflow.git', :branch => 'develop'
|
2010-04-07 22:24:11 +00:00
|
|
|
|
|
|
|
def install
|
2010-07-09 19:07:24 +00:00
|
|
|
system "make", "prefix=#{prefix}", "install"
|
2010-08-19 21:49:33 +00:00
|
|
|
|
2012-02-10 06:41:56 +00:00
|
|
|
GitFlowCompletion.new.brew do
|
|
|
|
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
|
2012-03-06 05:52:07 +00:00
|
|
|
(share+'zsh/functions').install "git-flow-completion.zsh"
|
2010-08-19 21:49:33 +00:00
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
end
|
|
|
|
end
|