poppler: also don't use @rpath for bin/*

Closes #20042.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-10-30 03:09:07 -07:00
parent c32dc6d090
commit 21dc4a993f

View file

@ -73,8 +73,9 @@ class Poppler < Formula
end
libpoppler = (lib/"libpoppler.dylib").readlink
["libpoppler-cpp.dylib", "libpoppler-glib.dylib"].each do |dylib|
macho = MachO.open("#{lib}/#{dylib}")
["#{lib}/libpoppler-cpp.dylib", "#{lib}/libpoppler-glib.dylib",
*Dir["#{bin}/*"]].each do |f|
macho = MachO.open(f)
macho.change_dylib("@rpath/#{libpoppler}", "#{lib}/#{libpoppler}")
macho.write!
end