2012-05-01 01:38:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Leveldb < Formula
|
|
|
|
homepage 'https://code.google.com/p/leveldb/'
|
2013-09-29 07:07:17 +00:00
|
|
|
url 'https://leveldb.googlecode.com/files/leveldb-1.14.0.tar.gz'
|
|
|
|
sha1 '641d54df4aaf7ee569ae003cfbdb888ebdee0d7f'
|
2012-05-01 01:38:50 +00:00
|
|
|
|
2013-11-07 11:29:14 +00:00
|
|
|
bottle do
|
2013-12-05 04:37:58 +00:00
|
|
|
# cellar :any
|
2013-11-07 11:29:14 +00:00
|
|
|
sha1 '5cc0089f4f609134b4bfc9c1e24ead21ff819ab9' => :mavericks
|
|
|
|
sha1 '61fa15138563d390443a81e712cffd45ab28b1d1' => :mountain_lion
|
|
|
|
sha1 'e1722018f88c967cf3c65a29cdd03f828e9da595' => :lion
|
|
|
|
end
|
|
|
|
|
2013-11-07 11:18:13 +00:00
|
|
|
depends_on 'snappy'
|
2012-05-01 01:38:50 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-07 11:23:21 +00:00
|
|
|
system 'make'
|
|
|
|
system 'make', 'leveldbutil'
|
|
|
|
|
|
|
|
include.install 'include/leveldb'
|
2013-02-04 19:17:11 +00:00
|
|
|
bin.install 'leveldbutil'
|
2012-09-02 22:37:29 +00:00
|
|
|
lib.install 'libleveldb.a'
|
2013-09-29 07:07:17 +00:00
|
|
|
lib.install 'libleveldb.dylib.1.14' => 'libleveldb.1.14.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.14.dylib' => 'libleveldb.dylib'
|
|
|
|
lib.install_symlink lib/'libleveldb.1.14.dylib' => 'libleveldb.1.dylib'
|
2012-05-01 01:38:50 +00:00
|
|
|
end
|
|
|
|
end
|