homebrew-core/Formula/leveldb.rb
Brett Koonce ce2a612fe4 leveldb 1.11.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-15 19:53:59 -07:00

20 lines
630 B
Ruby

require 'formula'
class Leveldb < Formula
homepage 'https://code.google.com/p/leveldb/'
url 'https://leveldb.googlecode.com/files/leveldb-1.11.0.tar.gz'
sha1 '401914f2e6465ed008d92a11f4013a28fdf5f240'
depends_on 'snappy' => :build
def install
system "make"
system "make leveldbutil"
include.install "include/leveldb"
bin.install 'leveldbutil'
lib.install 'libleveldb.a'
lib.install 'libleveldb.dylib.1.11' => 'libleveldb.1.11.dylib'
lib.install_symlink lib/'libleveldb.1.11.dylib' => 'libleveldb.dylib'
lib.install_symlink lib/'libleveldb.1.11.dylib' => 'libleveldb.1.dylib'
end
end