2012-05-01 01:38:50 +00:00
|
|
|
class Leveldb < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Key-value storage library with ordered mapping"
|
2014-12-12 08:10:37 +00:00
|
|
|
homepage "https://github.com/google/leveldb/"
|
|
|
|
url "https://github.com/google/leveldb/archive/v1.18.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "4aa1a7479bc567b95a59ac6fb79eba49f61884d6fd400f20b7af147d54c5cee5"
|
2012-05-01 01:38:50 +00:00
|
|
|
|
2013-11-07 11:29:14 +00:00
|
|
|
bottle do
|
2013-12-05 05:21:17 +00:00
|
|
|
cellar :any
|
2014-12-12 08:28:46 +00:00
|
|
|
sha1 "80a3d4ffe14368c5f81333f50f3c60c5a030a78c" => :yosemite
|
|
|
|
sha1 "2f66934542880fc0be0a0e5c5448797e4d0b7182" => :mavericks
|
|
|
|
sha1 "0658b662127010a2651a9ff7b8fe1361521b6094" => :mountain_lion
|
2013-11-07 11:29:14 +00:00
|
|
|
end
|
|
|
|
|
2014-12-12 08:10:37 +00:00
|
|
|
depends_on "snappy"
|
2012-05-01 01:38:50 +00:00
|
|
|
|
|
|
|
def install
|
2014-12-12 08:10:37 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "leveldbutil"
|
2013-11-07 11:23:21 +00:00
|
|
|
|
2014-12-12 08:10:37 +00:00
|
|
|
include.install "include/leveldb"
|
|
|
|
bin.install "leveldbutil"
|
|
|
|
lib.install "libleveldb.a"
|
|
|
|
lib.install "libleveldb.dylib.1.18" => "libleveldb.1.18.dylib"
|
|
|
|
lib.install_symlink lib/"libleveldb.1.18.dylib" => "libleveldb.dylib"
|
|
|
|
lib.install_symlink lib/"libleveldb.1.18.dylib" => "libleveldb.1.dylib"
|
|
|
|
system "install_name_tool", "-id", "#{lib}/libleveldb.1.dylib", "#{lib}/libleveldb.1.18.dylib"
|
2012-05-01 01:38:50 +00:00
|
|
|
end
|
|
|
|
end
|