aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mitmproxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/mitmproxy.rb')
-rw-r--r--Library/Formula/mitmproxy.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/mitmproxy.rb b/Library/Formula/mitmproxy.rb
index 50694fae5..c8dd98242 100644
--- a/Library/Formula/mitmproxy.rb
+++ b/Library/Formula/mitmproxy.rb
@@ -66,7 +66,12 @@ class Mitmproxy < Formula
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
- res = %w(pyopenssl pillow flask lxml netlib pyasn1 urwid)
+ resource("pillow").stage do
+ inreplace "setup.py", "'brew', '--prefix'", "'#{HOMEBREW_PREFIX}/bin/brew', '--prefix'"
+ system "python", *install_args
+ end
+
+ res = %w(pyopenssl flask lxml netlib pyasn1 urwid)
res << 'pyamf' if build.with? 'pyamf'
res << 'cssutils' if build.with? 'cssutils'