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-12-15 15:41:43 +00:00
|
|
|
url 'https://github.com/bobthecow/git-flow-completion/tarball/0.4.2'
|
|
|
|
sha1 '49316a92b667bc28fb9449824a4384a511861924'
|
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
|
|
|
|
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'
|
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-07-12 11:02:34 +00:00
|
|
|
GitFlowCompletion.new('git-flow-completion').brew do
|
2012-02-10 06:41:56 +00:00
|
|
|
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
|
2012-04-29 07:45:49 +00:00
|
|
|
(share+'zsh/site-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
|