2012-05-01 01:38:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Leveldb < Formula
|
|
|
|
homepage 'https://code.google.com/p/leveldb/'
|
2012-11-10 14:04:30 +00:00
|
|
|
url 'https://leveldb.googlecode.com/files/leveldb-1.7.0.tar.gz'
|
|
|
|
sha1 '82332ac97d48ad5da02aab4785658c06d0351be1'
|
2012-05-01 01:38:50 +00:00
|
|
|
|
|
|
|
depends_on 'snappy' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
include.install "include/leveldb"
|
2012-09-02 22:37:29 +00:00
|
|
|
lib.install 'libleveldb.a'
|
2012-11-10 14:04:30 +00:00
|
|
|
lib.install 'libleveldb.dylib.1.7' => 'libleveldb.1.7.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.7.dylib' => 'libleveldb.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.7.dylib' => 'libleveldb.1.dylib'
|
2012-05-01 01:38:50 +00:00
|
|
|
end
|
|
|
|
end
|