aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 00:28:46 -0500
committerJack Nagel2014-06-23 00:36:52 -0500
commit7d4f2454047556cda7a297d2813a7c117ed4e4cc (patch)
tree4d617b215124e9ee6a789972bcff66568271fe1e /Library
parent70f607b859f7147c3c5932ff957e9289ccd590b9 (diff)
downloadhomebrew-7d4f2454047556cda7a297d2813a7c117ed4e4cc.tar.bz2
leveldb: fix shared lib install name
Since we're renaming this library manually, we need to adjust the install name accordingly, otherwise we will end up with an install name of "libleveldb.dylib.1" instead of "libleveldb.1.dylib". Fixes #30378.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/leveldb.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/leveldb.rb b/Library/Formula/leveldb.rb
index e7db9939d..b09487593 100644
--- a/Library/Formula/leveldb.rb
+++ b/Library/Formula/leveldb.rb
@@ -4,6 +4,7 @@ class Leveldb < Formula
homepage 'https://code.google.com/p/leveldb/'
url 'https://leveldb.googlecode.com/files/leveldb-1.15.0.tar.gz'
sha1 '74b70a1156d91807d8d84bfdd026e0bb5acbbf23'
+ revision 1
bottle do
cellar :any
@@ -24,5 +25,6 @@ class Leveldb < Formula
lib.install 'libleveldb.dylib.1.15' => 'libleveldb.1.15.dylib'
lib.install_symlink lib/'libleveldb.1.15.dylib' => 'libleveldb.dylib'
lib.install_symlink lib/'libleveldb.1.15.dylib' => 'libleveldb.1.dylib'
+ system "install_name_tool", "-id", "#{lib}/libleveldb.1.dylib", "#{lib}/libleveldb.1.15.dylib"
end
end