Avoid using internal extension methods in formulae

This commit is contained in:
Jack Nagel 2015-03-10 21:55:03 -04:00
parent a88eba1c45
commit 2d7e6b6ce8

View file

@ -69,8 +69,8 @@ class Macvim < Formula
import distutils.sysconfig
print distutils.sysconfig.get_config_var("PYTHONFRAMEWORKPREFIX")
EOS
framework_prefix = `python -c '#{framework_script}'`.chuzzle
if framework_prefix && framework_prefix != "/System/Library/Frameworks"
framework_prefix = `python -c '#{framework_script}'`.strip
unless framework_prefix.empty? || framework_prefix == "/System/Library/Frameworks"
ENV.prepend "LDFLAGS", "-F#{framework_prefix}"
ENV.prepend "CFLAGS", "-F#{framework_prefix}"
end