diff options
| author | Adam Vandenberg | 2010-05-01 10:50:14 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-01 10:50:14 -0700 |
| commit | 5fe0b108ad795f1877a843c08c72ba07002d31b1 (patch) | |
| tree | f4d76fd823b9baef3873843a9c67bfea07e04c14 /Library | |
| parent | 5ea2248085d74b289fd18c07501426af8b7582f7 (diff) | |
| download | brew-5fe0b108ad795f1877a843c08c72ba07002d31b1.tar.bz2 | |
Add check for gettext to brew_doctor.
If the user has linked the keg-only gettext, then a large number
of formulae which don't have "depends_on 'gettext'" will pick it
up anyway. Knowing this about the user's setup may help diagnose
bug reports.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 94fbf1e0d..aca8caab7 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -209,6 +209,22 @@ def check_pkg_config_paths end end +def check_for_gettext + if File.exist? "#{HOMEBREW_PREFIX}/lib/libgettextlib.dylib" or + File.exist? "#{HOMEBREW_PREFIX}/lib/libintl.dylib" + puts <<-EOS.undent + gettext was detected in your PREFIX. + + The gettext provided by Homebrew is "keg-only", meaning it does not + get linked into your PREFIX by default. + + If you `brew link gettext` then a large number of brews that don't + otherwise have a `depends_on 'gettext'` will pick up gettext anyway + during the `./configure` step. + EOS + end +end + def brew_doctor read, write = IO.pipe @@ -226,6 +242,7 @@ def brew_doctor check_user_path check_which_pkg_config check_pkg_config_paths + check_for_gettext exit! 0 else |
