2012-05-01 01:38:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Leveldb < Formula
|
|
|
|
homepage 'https://code.google.com/p/leveldb/'
|
2013-01-18 02:47:14 +00:00
|
|
|
url 'https://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz'
|
|
|
|
sha1 '4d832277120912211998a2334fb975b995d51885'
|
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'
|
2013-01-18 02:47:14 +00:00
|
|
|
lib.install 'libleveldb.dylib.1.9' => 'libleveldb.1.9.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.9.dylib' => 'libleveldb.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.9.dylib' => 'libleveldb.1.dylib'
|
2012-05-01 01:38:50 +00:00
|
|
|
end
|
|
|
|
end
|