homebrew-core/Formula/hg-flow.rb
Xu Cheng 57a69c2b09 hg-flow 0.9.8
Also fix the install and add test

Closes Homebrew/homebrew#36957.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-19 18:38:54 +08:00

42 lines
1 KiB
Ruby

class HgFlow < Formula
homepage "https://bitbucket.org/yujiewu/hgflow"
url "https://bitbucket.org/yujiewu/hgflow/downloads/hgflow-v0.9.8.tar.bz2"
sha1 "c0fad82a4849533c2832fbbdead299f22ae2d681"
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