homebrew-core/Formula/leveldb.rb

29 lines
856 B
Ruby
Raw Normal View History

require 'formula'
class Leveldb < Formula
homepage 'https://code.google.com/p/leveldb/'
url 'https://leveldb.googlecode.com/files/leveldb-1.15.0.tar.gz'
sha1 '74b70a1156d91807d8d84bfdd026e0bb5acbbf23'
2013-11-07 11:29:14 +00:00
bottle do
2013-12-05 05:21:17 +00:00
cellar :any
2013-12-14 15:49:51 +00:00
sha1 'dd654d1abd93861c7d9573cb1171b59c8e23f50e' => :mavericks
sha1 'bd6bfb0889d0f563d760aa149536878493da5467' => :mountain_lion
sha1 'b30b1116005497f772b8af926e7c423f79174aab' => :lion
2013-11-07 11:29:14 +00:00
end
depends_on 'snappy'
def install
2013-11-07 11:23:21 +00:00
system 'make'
system 'make', 'leveldbutil'
include.install 'include/leveldb'
bin.install 'leveldbutil'
lib.install 'libleveldb.a'
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'
end
end