blob: 0eda3660a49542393f4cf6a0f19b528e1b73be24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require 'formula'
class HgFlow < Formula
homepage 'https://bitbucket.org/yujiewu/hgflow'
url 'https://bitbucket.org/yujiewu/hgflow/downloads/hgflow-v0.9.6.tar.bz2'
sha1 'f4f71daee139dcee882b9ab199f14b7214167498'
head "http://bitbucket.org/yujiewu/hgflow", :using => :hg, :branch => 'develop'
depends_on :python if MacOS.version <= :snow_leopard
def install
if build.head?
(lib/'python2.7/site-packages').install 'src/hgflow.py' => 'hgflow.py'
else
(lib/'python2.7/site-packages').install 'hgflow.py' => '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]
hgflow=
EOS
end
end
|