aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-06-07 14:22:15 +0200
committerSamuel John2013-06-07 17:58:56 +0200
commitafaf60d9ad140d30f6e792c81f978993e9392c02 (patch)
tree4f44b71d4e7d3757510ecfcc4b80d884ef9218bb /Library/Formula
parentcfd7f987de3bd867621831521ff1257a1b4f5b91 (diff)
downloadhomebrew-afaf60d9ad140d30f6e792c81f978993e9392c02.tar.bz2
hg-flow: 0.4
* depends_on :python * Install hgflow.py into `python.site_packages` * Use default branch for --HEAD * Work around naming bug for 0.4 download * Update caveats (`hgflow=` is enough)
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hg-flow.rb24
1 files changed, 17 insertions, 7 deletions
diff --git a/Library/Formula/hg-flow.rb b/Library/Formula/hg-flow.rb
index 8ea8ab4de..46defd041 100644
--- a/Library/Formula/hg-flow.rb
+++ b/Library/Formula/hg-flow.rb
@@ -1,14 +1,24 @@
require 'formula'
class HgFlow < Formula
- homepage 'https://bitbucket.org/yinwm/hgflow/wiki/Home'
- url 'https://bitbucket.org/yinwm/hgflow/get/v0.3.tar.gz'
- sha1 '56250d4ce9f2e24a71e6a3c4b1f3e1d37bb64766'
+ homepage 'https://bitbucket.org/yinwm/hgflow'
+ url 'https://bitbucket.org/yinwm/hgflow/downloads/hgflow-v0.4.pyhgflow-v0.4.py'
+ sha1 '517a4e42b7a7ed68140903d4687180aa175aa3ef'
- head "http://bitbucket.org/yinwm/hgflow", :using => :hg
+ head "http://bitbucket.org/yinwm/hgflow", :using => :hg, :branch => 'default'
+
+ depends_on :python
def install
- prefix.install 'src/hgflow/hgflow.py'
+ 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
end
def caveats; <<-EOS.undent
@@ -16,8 +26,8 @@ class HgFlow < Formula
2. Restart your shell and try "hg flow".
3. For more information go to http://bitbucket.org/yinwm/hgflow
- [extensions]
- hgflow = #{prefix}/hgflow.py
+ [extensions]
+ hgflow=
EOS
end