2010-08-19 21:49:33 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2010-04-07 22:24:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitFlowCompletion < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
url 'https://github.com/bobthecow/git-flow-completion.git', :tag => '0.4.1.0'
|
2011-04-29 20:16:38 +00:00
|
|
|
version '0.4.1.0'
|
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
|
|
|
|
|
|
|
def initialize
|
|
|
|
# We need to hard-code the formula name since Homebrew can't
|
|
|
|
# deduce it from the formula's filename, and the git download
|
|
|
|
# strategy really needs a valid name.
|
|
|
|
|
|
|
|
super "git-flow-completion"
|
|
|
|
end
|
|
|
|
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/bobthecow/git-flow-completion'
|
2010-08-19 21:49:33 +00:00
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitFlow < Formula
|
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'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/nvie/gitflow.git', :branch => 'develop'
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/nvie/gitflow'
|
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
|
|
|
|
|
|
|
# Normally, etc files are installed directly into HOMEBREW_PREFIX,
|
|
|
|
# rather than being linked from the Cellar — this is so that
|
|
|
|
# configuration files don't get clobbered when you update. The
|
|
|
|
# bash-completion file isn't really configuration, though; it
|
|
|
|
# should be updated when we upgrade the package.
|
|
|
|
|
|
|
|
cellar_etc = prefix + 'etc'
|
|
|
|
bash_completion_d = cellar_etc + "bash_completion.d"
|
|
|
|
|
|
|
|
completion = GitFlowCompletion.new
|
|
|
|
completion.brew do
|
|
|
|
bash_completion_d.install "git-flow-completion.bash"
|
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
end
|
|
|
|
end
|