homebrew-core/Formula/leveldb.rb

29 lines
858 B
Ruby
Raw Normal View History

require 'formula'
class Leveldb < Formula
homepage 'https://code.google.com/p/leveldb/'
url 'https://leveldb.googlecode.com/files/leveldb-1.14.0.tar.gz'
sha1 '641d54df4aaf7ee569ae003cfbdb888ebdee0d7f'
2013-11-07 11:29:14 +00:00
bottle do
# cellar :any
2013-11-07 11:29:14 +00:00
sha1 '5cc0089f4f609134b4bfc9c1e24ead21ff819ab9' => :mavericks
sha1 '61fa15138563d390443a81e712cffd45ab28b1d1' => :mountain_lion
sha1 'e1722018f88c967cf3c65a29cdd03f828e9da595' => :lion
end
depends_on 'snappy'
def install
2013-11-07 11:23:21 +00:00
system 'make'
system 'make', 'leveldbutil'
include.install 'include/leveldb'
bin.install 'leveldbutil'
lib.install 'libleveldb.a'
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'
end
end