2012-01-17 08:14:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class HgFlow < Formula
|
2013-06-07 12:22:15 +00:00
|
|
|
homepage 'https://bitbucket.org/yinwm/hgflow'
|
|
|
|
url 'https://bitbucket.org/yinwm/hgflow/downloads/hgflow-v0.4.pyhgflow-v0.4.py'
|
|
|
|
sha1 '517a4e42b7a7ed68140903d4687180aa175aa3ef'
|
2012-01-17 08:14:25 +00:00
|
|
|
|
2013-06-07 12:22:15 +00:00
|
|
|
head "http://bitbucket.org/yinwm/hgflow", :using => :hg, :branch => 'default'
|
|
|
|
|
|
|
|
depends_on :python
|
2012-01-17 08:14:25 +00:00
|
|
|
|
|
|
|
def install
|
2013-06-07 12:22:15 +00:00
|
|
|
if build.head?
|
|
|
|
python do
|
|
|
|
cd 'src/hgflow'
|
|
|
|
system python, 'setup.py', 'install', "--prefix=#{prefix}"
|
|
|
|
end
|
|
|
|
else
|
|
|
|
# That strange name seems like a bug. https://bitbucket.org/yinwm/hgflow/issue/24
|
|
|
|
python.site_packages.install 'hgflow-v0.4.pyhgflow-v0.4.py' => 'hgflow.py'
|
|
|
|
end
|
2012-01-17 08:14:25 +00:00
|
|
|
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
|
|
|
|
|
2013-06-07 12:22:15 +00:00
|
|
|
[extensions]
|
|
|
|
hgflow=
|
2012-01-17 08:14:25 +00:00
|
|
|
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|