ENV: fix homebrew_extra_pkg_config_paths

Switch to HOMEBREW_LIBRARY since HOMEBREW_LIBRARY_PATH already includes
"/Homebrew" and HOMEBREW_LIBRARY is less confusing.

Closes #530.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-07-16 07:41:31 -07:00
parent 4b2c4ef258
commit 356018501b
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module Stdenv
end
def homebrew_extra_pkg_config_paths
["#{HOMEBREW_LIBRARY_PATH}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
end
# Sets architecture-specific flags for every environment variable

View File

@ -26,7 +26,7 @@ module Superenv
# @private
def homebrew_extra_pkg_config_paths
paths = \
["#{HOMEBREW_LIBRARY_PATH}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
paths << "#{MacOS::X11.lib}/pkgconfig" << "#{MacOS::X11.share}/pkgconfig" if x11?
paths
end