diff options
| author | Max Howell | 2010-05-10 00:19:26 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:04 -0800 |
| commit | c67a372c576dad61cf864fdb93bd92648c6513af (patch) | |
| tree | 2214d8737cb3d08c2d52c4e86f7f4920dba14d33 /Library | |
| parent | d5f1787f64767cc992ea6b4d41707acd0f8aeb3a (diff) | |
| download | homebrew-c67a372c576dad61cf864fdb93bd92648c6513af.tar.bz2 | |
Let the core handle the install name fixes now
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/icu4c.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Library/Formula/icu4c.rb b/Library/Formula/icu4c.rb index e1403881d..6d35e34f5 100644 --- a/Library/Formula/icu4c.rb +++ b/Library/Formula/icu4c.rb @@ -21,26 +21,6 @@ class Icu4c <Formula system "make" system "make install" end - - # fix install_names - lib.children.reject{ |pn| pn.symlink? or pn.extname != '.dylib' }.each do |dylib| - bad_names(dylib) do |id, bad_names| - cd lib do - system "install_name_tool", "-id", (lib+id).realpath, dylib.basename - bad_names.each do |bad| - system "install_name_tool", "-change", bad, (lib+bad.basename).realpath, dylib.basename - end - end - end - end - end - - def bad_names pn - ENV['HOMEBREW_PN'] = pn.to_s - rx = /\t(.*) \(compatibility version (\d+\.)*\d+, current version (\d+\.)*\d+\)/ - dylibs = `otool -L "$HOMEBREW_PN"`.split "\n" - dylibs = dylibs.map{ |fn| rx =~ fn && $1 }.compact.reject{ |fn| fn[0].chr == '/' }.map{ |fn| Pathname.new fn } - yield dylibs.shift, dylibs end end |
