Relocate files in share/pkgconfig too
This commit is contained in:
parent
3ddd7b8ebb
commit
be46fc3a48
@ -171,13 +171,13 @@ class Keg < Pathname
|
|||||||
def pkgconfig_files
|
def pkgconfig_files
|
||||||
pkgconfig_files = []
|
pkgconfig_files = []
|
||||||
|
|
||||||
# find .pc files, which are stored in lib/pkgconfig
|
%w[lib share].each do |dir|
|
||||||
pc_dir = self/'lib/pkgconfig'
|
pcdir = join(dir, "pkgconfig")
|
||||||
if pc_dir.directory?
|
|
||||||
pc_dir.find do |pn|
|
pcdir.find do |pn|
|
||||||
next if pn.symlink? or pn.directory? or pn.extname != '.pc'
|
next if pn.symlink? or pn.directory? or pn.extname != '.pc'
|
||||||
pkgconfig_files << pn
|
pkgconfig_files << pn
|
||||||
end
|
end if pcdir.directory?
|
||||||
end
|
end
|
||||||
|
|
||||||
pkgconfig_files
|
pkgconfig_files
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user