yle-dl: set SDKROOT on 10.12

to fix lxml build failure
"ld: file not found: /usr/lib/system/libsystem_darwin.dylib"
This commit is contained in:
ilovezfs 2017-11-20 03:42:16 -08:00
parent 02bb036f41
commit e15fcfc201

View file

@ -73,6 +73,9 @@ class YleDl < Formula
end
def install
# Fix "ld: file not found: /usr/lib/system/libsystem_darwin.dylib" for lxml
ENV["SDKROOT"] = MacOS.sdk_path if MacOS.version == :sierra
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
(resources - [resource("AdobeHDS.php")]).each do |r|
r.stage do