re2: fix library ID.

Closes Homebrew/homebrew#39198.

Closes Homebrew/homebrew#39211.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-04-30 10:17:53 +01:00
parent dd3f00ce48
commit 60af9ad5e8

View file

@ -24,6 +24,7 @@ class Re2 < Formula
end
system "make", "install", "prefix=#{prefix}"
mv lib/"libre2.so.0.0.0", lib/"libre2.0.0.0.dylib"
system "install_name_tool", "-id", "#{lib}/libre2.0.dylib", "#{lib}/libre2.0.0.0.dylib"
lib.install_symlink "libre2.0.0.0.dylib" => "libre2.0.dylib"
lib.install_symlink "libre2.0.0.0.dylib" => "libre2.dylib"
end