aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/std.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend/ENV/std.rb')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index aafc0a451..c4cc0985f 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -57,12 +57,12 @@ module Stdenv
end
def determine_pkg_config_libdir
- paths = []
- paths << "#{HOMEBREW_PREFIX}/lib/pkgconfig"
- paths << "#{HOMEBREW_PREFIX}/share/pkgconfig"
- paths += homebrew_extra_pkg_config_paths
- paths << "/usr/lib/pkgconfig"
- paths.select { |d| File.directory? d }.join(File::PATH_SEPARATOR)
+ PATH.new(
+ HOMEBREW_PREFIX/"lib/pkgconfig",
+ HOMEBREW_PREFIX/"share/pkgconfig",
+ homebrew_extra_pkg_config_paths,
+ "/usr/lib/pkgconfig",
+ ).existing
end
# Removes the MAKEFLAGS environment variable, causing make to use a single job.