keg: use lib helper
This commit is contained in:
parent
935091cd8e
commit
24d8791dfb
@ -147,9 +147,7 @@ class Keg
|
|||||||
end
|
end
|
||||||
|
|
||||||
def find_dylib name
|
def find_dylib name
|
||||||
(join 'lib').find do |pn|
|
lib.find { |pn| break pn if pn.basename == Pathname.new(name) }
|
||||||
break pn if pn.basename == Pathname.new(name)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def mach_o_files
|
def mach_o_files
|
||||||
@ -192,8 +190,7 @@ class Keg
|
|||||||
libtool_files = []
|
libtool_files = []
|
||||||
|
|
||||||
# find .la files, which are stored in lib/
|
# find .la files, which are stored in lib/
|
||||||
la_dir = self/'lib'
|
lib.find do |pn|
|
||||||
la_dir.find do |pn|
|
|
||||||
next if pn.symlink? or pn.directory? or pn.extname != '.la'
|
next if pn.symlink? or pn.directory? or pn.extname != '.la'
|
||||||
libtool_files << pn
|
libtool_files << pn
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user