2013-01-03 20:45:39 +00:00
|
|
|
class GitFlowAvh < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "AVH edition of git-flow"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/petervanderdoes/gitflow"
|
2014-10-01 13:51:26 +00:00
|
|
|
url "https://github.com/petervanderdoes/gitflow/archive/1.8.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "8239131b8dac160d7e929eab376fa14de44a55cbd5c5545e0ad4464d3a57adef"
|
2013-01-03 20:45:39 +00:00
|
|
|
|
2013-09-18 02:37:24 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://github.com/petervanderdoes/gitflow.git", :branch => "develop"
|
2013-09-18 02:37:24 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
resource "completion" do
|
|
|
|
url "https://github.com/petervanderdoes/git-flow-completion.git", :branch => "develop"
|
2013-09-18 02:37:24 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
resource "completion" do
|
|
|
|
url "https://github.com/petervanderdoes/git-flow-completion/archive/0.5.1.tar.gz"
|
|
|
|
sha256 "5c8547a549dc623a8d57cfc22c3fa88588f5630da9dc6de9638e5b69da9d47d0"
|
2013-09-18 02:37:24 +00:00
|
|
|
end
|
2013-01-03 20:45:39 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "gnu-getopt"
|
2013-01-03 20:45:39 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
conflicts_with "git-flow"
|
2013-01-03 20:45:39 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-17 00:54:10 +00:00
|
|
|
system "make", "prefix=#{libexec}", "install"
|
2015-08-03 12:55:31 +00:00
|
|
|
(bin/"git-flow").write <<-EOS.undent
|
2013-11-17 00:54:10 +00:00
|
|
|
#!/bin/bash
|
2014-10-27 03:30:28 +00:00
|
|
|
export FLAGS_GETOPT_CMD=#{Formula["gnu-getopt"].opt_bin}/getopt
|
2013-11-17 00:54:10 +00:00
|
|
|
exec "#{libexec}/bin/git-flow" "$@"
|
|
|
|
EOS
|
2013-03-04 23:16:17 +00:00
|
|
|
|
2015-08-03 12:55:31 +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"
|
2013-03-04 23:16:17 +00:00
|
|
|
end
|
2013-01-03 20:45:39 +00:00
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:18 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/git-flow", "version"
|
2013-01-03 20:45:39 +00:00
|
|
|
end
|
|
|
|
end
|