homebrew-core/Formula/leveldb.rb
Zach Moazeni b1be296ba1 leveldb 1.5.0
LevelDB is a fast key-value storage library written at Google that
provides an ordered mapping from string keys to string values.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-07 21:45:02 -07:00

20 lines
499 B
Ruby

require 'formula'
class Leveldb < Formula
homepage 'https://code.google.com/p/leveldb/'
url 'https://leveldb.googlecode.com/files/leveldb-1.5.0.tar.gz'
sha1 'b5b45ff74065f242c37f465b13dafb925972ca43'
depends_on 'snappy' => :build
def install
system "make"
include.install "include/leveldb"
mv "libleveldb.dylib.1.5", "libleveldb.1.5.dylib"
rm "libleveldb.dylib"
ln_s "libleveldb.1.5.dylib", "libleveldb.dylib"
lib.install Dir["libleveldb.{a,dylib}"]
end
end