weboob: fix Pillow build on Mojave

This commit is contained in:
Dominyk Tiller 2018-08-31 03:33:06 +01:00
parent d33e2e7aea
commit 41673fca64
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -111,7 +111,7 @@ class Weboob < Formula
resource("Pillow").stage do
inreplace "setup.py" do |s|
sdkprefix = MacOS::CLT.installed? ? "" : MacOS.sdk_path
sdkprefix = MacOS.sdk_path_if_needed ? MacOS.sdk_path : ""
s.gsub! "openjpeg.h", "probably_not_a_header_called_this_eh.h"
s.gsub! "ZLIB_ROOT = None", "ZLIB_ROOT = ('#{sdkprefix}/usr/lib', '#{sdkprefix}/usr/include')"
s.gsub! "JPEG_ROOT = None", "JPEG_ROOT = ('#{Formula["jpeg"].opt_prefix}/lib', '#{Formula["jpeg"].opt_prefix}/include')"