aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-cola.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git-cola.rb')
-rw-r--r--Library/Formula/git-cola.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Formula/git-cola.rb b/Library/Formula/git-cola.rb
index e36c65dd0..e4b979b99 100644
--- a/Library/Formula/git-cola.rb
+++ b/Library/Formula/git-cola.rb
@@ -9,6 +9,7 @@ class GitCola < Formula
option 'with-docs', "Build man pages using asciidoc and xmlto"
+ depends_on :python
depends_on 'pyqt'
if build.include? 'with-docs'
@@ -18,18 +19,17 @@ class GitCola < Formula
end
def install
- ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages", ':'
- system "make", "prefix=#{prefix}", "install"
-
- if build.include? 'with-docs'
- system "make", "-C", "share/doc/git-cola",
- "-f", "Makefile.asciidoc",
- "prefix=#{prefix}",
- "install", "install-html"
+ python do
+ # The python do block creates the PYTHONPATH and temp. site-packages
+ system "make", "prefix=#{prefix}", "install"
+
+ if build.include? 'with-docs'
+ system "make", "-C", "share/doc/git-cola",
+ "-f", "Makefile.asciidoc",
+ "prefix=#{prefix}",
+ "install", "install-html"
+ end
end
end
- def which_python
- "python" + `python -c 'import sys;print(sys.version[:3])'`.strip
- end
end