PageRenderTime 411ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/hg-flow.rb

https://bitbucket.org/bathtub/tigerbrew
Ruby | 34 lines | 26 code | 7 blank | 1 comment | 1 complexity | 7da2359b983125c3f7ead2bfb32b658d MD5 | raw file
  1. require 'formula'
  2. class HgFlow < Formula
  3. homepage 'https://bitbucket.org/yinwm/hgflow'
  4. url 'https://bitbucket.org/yinwm/hgflow/downloads/hgflow-v0.4.pyhgflow-v0.4.py'
  5. sha1 '517a4e42b7a7ed68140903d4687180aa175aa3ef'
  6. head "http://bitbucket.org/yinwm/hgflow", :using => :hg, :branch => 'default'
  7. depends_on :python
  8. def install
  9. if build.head?
  10. python do
  11. cd 'src/hgflow'
  12. system python, 'setup.py', 'install', "--prefix=#{prefix}"
  13. end
  14. else
  15. # That strange name seems like a bug. https://bitbucket.org/yinwm/hgflow/issue/24
  16. python.site_packages.install 'hgflow-v0.4.pyhgflow-v0.4.py' => 'hgflow.py'
  17. end
  18. end
  19. def caveats; <<-EOS.undent
  20. 1. Put following lines into your ~/.hgrc
  21. 2. Restart your shell and try "hg flow".
  22. 3. For more information go to http://bitbucket.org/yinwm/hgflow
  23. [extensions]
  24. hgflow=
  25. EOS
  26. end
  27. end