aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-03-08 18:10:35 -0600
committerJack Nagel2013-03-09 14:46:01 -0600
commit79a7cf6ab163a2cd47ee9509134aa8e1333b021a (patch)
tree959d3fdf716ad8a4a3a529846158a2fa0f89bf07 /Library/Homebrew
parent4a3158610dd3986e5e45b1d404f5dd7c1adc1c2b (diff)
downloadhomebrew-79a7cf6ab163a2cd47ee9509134aa8e1333b021a.tar.bz2
Index pkgconfig directories by MacOS.version
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ENV.rb3
-rw-r--r--Library/Homebrew/superenv.rb3
2 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index c8b567239..ff51ced66 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -69,8 +69,7 @@ module HomebrewEnvExtension
paths = []
paths << HOMEBREW_PREFIX/'lib/pkgconfig'
paths << HOMEBREW_PREFIX/'share/pkgconfig'
- paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig/mountain_lion' if MacOS.version >= :mountain_lion
- paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig/leopard' if MacOS.version <= :leopard
+ paths << HOMEBREW_REPOSITORY/"Library/ENV/pkgconfig/#{MacOS.version}"
paths << '/usr/lib/pkgconfig'
paths.select { |d| File.directory? d }.join(':')
end
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb
index 79e8a396b..36dead356 100644
--- a/Library/Homebrew/superenv.rb
+++ b/Library/Homebrew/superenv.rb
@@ -127,8 +127,7 @@ class << ENV
paths << "#{HOMEBREW_PREFIX}/share/pkgconfig"
# we put our paths before X because we dupe some of the X libraries
paths << "#{MacSystem.x11_prefix}/lib/pkgconfig" << "#{MacSystem.x11_prefix}/share/pkgconfig" if x11?
- # Mountain Lion no longer ships some .pcs; ensure we pick up our versions
- paths << "#{HOMEBREW_REPOSITORY}/Library/ENV/pkgconfig/mountain_lion" if MacOS.version >= :mountain_lion
+ paths << "#{HOMEBREW_REPOSITORY}/Library/ENV/pkgconfig/#{MacOS.version}"
paths.to_path_s
end