diff options
| author | Jack Nagel | 2014-03-29 22:14:10 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-29 22:18:48 -0500 |
| commit | b70234cdca250242561637228db2e1f7f254d48c (patch) | |
| tree | f57772aa18adc9891642368e2b0ed1f6c80ac355 /Library | |
| parent | 5aff701ff62d006d4f353f830b33339f6c04a816 (diff) | |
| download | homebrew-b70234cdca250242561637228db2e1f7f254d48c.tar.bz2 | |
Relocate files in share/pkgconfig too
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 4c2b616aa..083afabff 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -171,13 +171,13 @@ class Keg < Pathname def pkgconfig_files pkgconfig_files = [] - # find .pc files, which are stored in lib/pkgconfig - pc_dir = self/'lib/pkgconfig' - if pc_dir.directory? - pc_dir.find do |pn| + %w[lib share].each do |dir| + pcdir = join(dir, "pkgconfig") + + pcdir.find do |pn| next if pn.symlink? or pn.directory? or pn.extname != '.pc' pkgconfig_files << pn - end + end if pcdir.directory? end pkgconfig_files |
