aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-28 20:01:38 -0500
committerJack Nagel2014-03-28 20:01:38 -0500
commit85122eeefcfb72565e4651da388e9e46c6cd5c3d (patch)
tree3c41642ed6dd5740bd75738d3213544e9fd63c33 /Library/Formula
parent5272aa84e0526edf225e9f992053ff184ee0e851 (diff)
downloadhomebrew-85122eeefcfb72565e4651da388e9e46c6cd5c3d.tar.bz2
mitmproxy: work around freetype issue
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mitmproxy.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/mitmproxy.rb b/Library/Formula/mitmproxy.rb
index cf3eb999b..4ffffa369 100644
--- a/Library/Formula/mitmproxy.rb
+++ b/Library/Formula/mitmproxy.rb
@@ -64,8 +64,15 @@ class Mitmproxy < Formula
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
+ resource('pillow').stage do
+ # Disable freetype. Pillow tries really hard to find it, including
+ # querying Homebrew and looking for an X11 installation, but our
+ # compiler wrappers will filter out the paths, breaking the build.
+ (buildpath/"setup.cfg").write "[build_ext]\ndisable-freetype=1\n"
+ system "python", *install_args
+ end
+
resource('pyopenssl').stage { system "python", *install_args }
- resource('pillow').stage { system "python", *install_args }
resource('flask').stage { system "python", *install_args }
resource('lxml').stage { system "python", *install_args }
resource('netlib').stage { system "python", *install_args }