2011-03-10 05:11:03 +00:00
|
|
|
class GitFlow < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extensions to follow Vincent Driessen's branching model"
|
2015-01-03 09:35:45 +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
|
2015-09-21 07:40:37 +00:00
|
|
|
url "https://github.com/nvie/gitflow.git",
|
|
|
|
:tag => "0.4.1",
|
|
|
|
:revision => "1ffb6b1091f05466d3cd27f2da9c532a38586ed5"
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2015-01-03 15:40:01 +00:00
|
|
|
bottle do
|
2015-09-20 20:30:39 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "56826b30d91ffb54829f4792f88c673b1c3e748aa662bef5806e4a6f5d0ee015" => :el_capitan
|
2015-01-03 15:40:01 +00:00
|
|
|
sha1 "ab05739e882e5a930863ce03d2dcbe62ac329dc1" => :yosemite
|
|
|
|
sha1 "a3e07853d8152891aecf98eed7943edc07e2e1ec" => :mavericks
|
|
|
|
sha1 "0b02d71a300810649c677dd8f9b26ebc6351087f" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-09-18 02:25:42 +00:00
|
|
|
head do
|
2015-01-03 09:35:45 +00:00
|
|
|
url "https://github.com/nvie/gitflow.git", :branch => "develop"
|
2013-09-18 02:25:42 +00:00
|
|
|
|
2015-01-03 09:35:45 +00:00
|
|
|
resource "completion" do
|
|
|
|
url "https://github.com/bobthecow/git-flow-completion.git", :branch => "develop"
|
2013-09-18 02:25:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-01-03 09:35:45 +00:00
|
|
|
resource "completion" do
|
|
|
|
url "https://github.com/bobthecow/git-flow-completion/archive/0.4.2.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "1e82d039596c0e73bfc8c59d945ded34e4fce777d9b9bb45c3586ee539048ab9"
|
2013-09-18 02:25:42 +00:00
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
|
2015-01-03 09:35:45 +00:00
|
|
|
conflicts_with "git-flow-avh"
|
2013-01-03 20:45:39 +00:00
|
|
|
|
2010-04-07 22:24:11 +00:00
|
|
|
def install
|
2013-06-29 15:53:35 +00:00
|
|
|
system "make", "prefix=#{libexec}", "install"
|
2015-01-03 09:35:45 +00:00
|
|
|
bin.write_exec_script libexec/"bin/git-flow"
|
2010-08-19 21:49:33 +00:00
|
|
|
|
2015-01-03 09:35:45 +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
|
2015-01-03 09:35:45 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "git", "flow", "init", "-d"
|
|
|
|
assert_equal "develop", shell_output("git rev-parse --abbrev-ref HEAD").strip
|
|
|
|
end
|
2010-04-07 22:24:11 +00:00
|
|
|
end
|