weboob: fix Pillow build on Mojave
This commit is contained in:
parent
d33e2e7aea
commit
41673fca64
1 changed files with 1 additions and 1 deletions
|
@ -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')"
|
||||
|
|
Loading…
Reference in a new issue