diff --git a/Formula/weboob.rb b/Formula/weboob.rb index 5273899411..fbe844d228 100644 --- a/Formula/weboob.rb +++ b/Formula/weboob.rb @@ -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')"