homebrew-core/Formula/hg-flow.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

43 lines
1.1 KiB
Ruby

class HgFlow < Formula
desc "Development model for mercurial inspired by git-flow"
homepage "https://bitbucket.org/yujiewu/hgflow"
url "https://bitbucket.org/yujiewu/hgflow/downloads/hgflow-v0.9.8.tar.bz2"
sha256 "0078d5a562f7a0e1eaf2b1018de10540c56756d91f5f1c3b1b40b753cbccab95"
head "http://bitbucket.org/yujiewu/hgflow", :using => :hg, :branch => "develop"
depends_on :python if MacOS.version <= :snow_leopard
depends_on :hg
def install
if build.head?
libexec.install "src/hgflow.py" => "hgflow.py"
else
libexec.install "hgflow.py"
end
end
def caveats; <<-EOS.undent
1. Put following lines into your ~/.hgrc
2. Restart your shell and try "hg flow".
3. For more information go to http://bitbucket.org/yinwm/hgflow
[extensions]
flow = #{opt_prefix}/libexec/hgflow.py
[flow]
autoshelve = true
EOS
end
test do
(testpath/".hgrc").write <<-EOS.undent
[extensions]
flow = #{opt_prefix}/libexec/hgflow.py
[flow]
autoshelve = true
EOS
system "hg", "init"
system "hg", "flow", "init", "-d"
end
end