From bb7fcab9d65e5ddec8554cb061af6dc873fc5c93 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 4 Sep 2012 10:49:14 -0500 Subject: Fix bad install names in executables Signed-off-by: Jack Nagel --- Library/Formula/libspotify.rb | 11 ++++------- Library/Formula/notmuch.rb | 2 -- Library/Formula/v8.rb | 2 -- 3 files changed, 4 insertions(+), 11 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libspotify.rb b/Library/Formula/libspotify.rb index 649c084a7..5df2b203c 100644 --- a/Library/Formula/libspotify.rb +++ b/Library/Formula/libspotify.rb @@ -12,13 +12,10 @@ class Libspotify < Formula doc.install %w(ChangeLog README LICENSE licenses.xhtml examples) man3.install Dir['man3/*'] - cd lib - ln_s "libspotify.12.1.51.dylib", "libspotify.dylib" - ln_s "libspotify.12.1.51.dylib", "libspotify.12.dylib" - - system "install_name_tool", "-id", - "#{HOMEBREW_PREFIX}/lib/libspotify.12.1.51.dylib", - "libspotify.dylib" + lib.cd do + ln_s "libspotify.12.1.51.dylib", "libspotify.dylib" + ln_s "libspotify.12.1.51.dylib", "libspotify.12.dylib" + end (lib+'pkgconfig/libspotify.pc').write pc_content end diff --git a/Library/Formula/notmuch.rb b/Library/Formula/notmuch.rb index 139bcc9a6..58961c2cd 100644 --- a/Library/Formula/notmuch.rb +++ b/Library/Formula/notmuch.rb @@ -13,7 +13,5 @@ class Notmuch < Formula # requires a newer emacs than OS X provides, so disable the bindings system "./configure", "--prefix=#{prefix}", "--without-emacs" system "make install" - system "install_name_tool", "-change", "libnotmuch.2.dylib", - "#{lib}/libnotmuch.2.dylib", "#{bin}/notmuch" end end diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb index 14102ed67..9870eba77 100644 --- a/Library/Formula/v8.rb +++ b/Library/Formula/v8.rb @@ -25,7 +25,5 @@ class V8 < Formula prefix.install 'include' lib.install 'libv8.dylib' bin.install 'shell' => 'v8' - - system "install_name_tool", "-change", "libv8.dylib", "#{lib}/libv8.dylib", "#{bin}/v8" end end -- cgit v1.2.3