aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-19 18:18:27 +0800
committerXu Cheng2015-02-19 18:38:54 +0800
commit3a65f1347d0eecd3a845fa655057dc118127c3da (patch)
treefafbfd061d5a7310c3dc67a141cdb617336b984c /Library/Formula
parentf15cffdbd71a3873fc19d29a7ec36310c3ef8c1d (diff)
downloadhomebrew-3a65f1347d0eecd3a845fa655057dc118127c3da.tar.bz2
hg-flow 0.9.8
Also fix the install and add test Closes #36957. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hg-flow.rb30
1 files changed, 21 insertions, 9 deletions
diff --git a/Library/Formula/hg-flow.rb b/Library/Formula/hg-flow.rb
index 0eda3660a..66ffdd033 100644
--- a/Library/Formula/hg-flow.rb
+++ b/Library/Formula/hg-flow.rb
@@ -1,19 +1,18 @@
-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'
+ 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'
+ 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?
- (lib/'python2.7/site-packages').install 'src/hgflow.py' => 'hgflow.py'
+ libexec.install "src/hgflow.py" => "hgflow.py"
else
- (lib/'python2.7/site-packages').install 'hgflow.py' => 'hgflow.py'
+ libexec.install "hgflow.py"
end
end
@@ -23,8 +22,21 @@ class HgFlow < Formula
3. For more information go to http://bitbucket.org/yinwm/hgflow
[extensions]
- hgflow=
+ 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