diff options
| author | Dominyk Tiller | 2016-09-12 05:04:14 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-12 05:04:14 +0100 |
| commit | 5d9ee6b1d4cfcb5a270bfabaa1d0b17a85fff2aa (patch) | |
| tree | e6cc7d021589a228dcd2da445de9529eb0e67337 | |
| parent | 2b45ae483199d846b84fea4826b2a20fe74d1dbe (diff) | |
| parent | 2394d6f2d8d00dfe6dd3824de678d3ca44e9ae57 (diff) | |
| download | brew-5d9ee6b1d4cfcb5a270bfabaa1d0b17a85fff2aa.tar.bz2 | |
Merge pull request #917 from DomT4/keg_only_pkg_config
caveats: highlight PKG_CONFIG_PATH if exists
| -rw-r--r-- | Library/Homebrew/caveats.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 7c23901b8..b71596b2b 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -54,6 +54,11 @@ class Caveats EOS s << " LDFLAGS: -L#{f.opt_lib}\n" if f.lib.directory? s << " CPPFLAGS: -I#{f.opt_include}\n" if f.include.directory? + + if which("pkg-config") + s << " PKG_CONFIG_PATH: #{f.opt_lib}/pkgconfig\n" if (f.lib/"pkgconfig").directory? + s << " PKG_CONFIG_PATH: #{f.opt_share}/pkgconfig\n" if (f.share/"pkgconfig").directory? + end end s << "\n" end |
