aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMisty De Meo2012-07-28 20:02:33 -0300
committerMisty De Meo2012-07-29 10:28:41 -0300
commit6a8c4843f773efb62f9ec0b658837be50ec9d632 (patch)
treee834a94c34104a63e1b53c74f7cdf0deb71309af /Library/Homebrew/extend
parent3822267d2c9981192b909a1fb74d997f536cb579 (diff)
downloadbrew-6a8c4843f773efb62f9ec0b658837be50ec9d632.tar.bz2
Provide missing .pc files for 10.8
10.8 no longer ships four .pc files which were included in previous versions, though it does still include the libraries which they pointed to. This commit provides copies of the .pc files for all of these, and prepends Library/Homebrew/pkgconfig to PKG_CONFIG_PATH on 10.8. The .pc files in question are: lib curl, lubexslt, libxml-2.0, libxslt Fixes Homebrew/homebrew#13673. Fixes Homebrew/homebrew#13627. Fixes Homebrew/homebrew#13652. Fixes Homebrew/homebrew#13482. Closes Homebrew/homebrew#13572. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 6e5d335d0..363c6d356 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -9,6 +9,12 @@ module HomebrewEnvExtension
delete('CLICOLOR_FORCE') # autotools doesn't like this
remove_cc_etc
+ # Mountain Lion no longer ships a few .pcs; make sure we pick up our versions
+ if MacOS.mountain_lion?
+ prepend 'PKG_CONFIG_PATH',
+ HOMEBREW_REPOSITORY/'Library/Homebrew/pkgconfig', ':'
+ end
+
# make any aclocal stuff installed in Homebrew available
self['ACLOCAL_PATH'] = "#{HOMEBREW_PREFIX}/share/aclocal" if MacOS::Xcode.provides_autotools?