libxml2: Python bindings find libiconv on NCLT.

Closes Homebrew/homebrew#13511.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
samueljohn 2012-08-21 16:08:58 +02:00 committed by Jack Nagel
parent 0917374454
commit bea2ef86c7

View file

@ -37,6 +37,11 @@ class Libxml2 < Formula
ENV.append 'CFLAGS', arch_flags
ENV.append 'LDFLAGS', arch_flags
unless MacOS::CLT.installed?
# We can hijack /opt/include to insert SDKROOT/usr/include
inreplace 'setup.py', '"/opt/include",', "'#{MacOS.sdk_path}/usr/include',"
end
system "python", "setup.py",
"install_lib",
"--install-dir=#{python_lib}"