homebrew-core/Formula/lmdb.rb
Mike McQuaid 7a4dabfc1a Use hash rockets again. (#5177)
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
2016-09-24 16:45:48 +01:00

30 lines
1.1 KiB
Ruby

class Lmdb < Formula
desc "Lightning memory-mapped database: key-value data store"
homepage "https://symas.com/mdb-and-sqlite/"
url "https://github.com/LMDB/lmdb/archive/LMDB_0.9.18.tar.gz"
sha256 "dd35b471d6eea84f48f2feece13d121abf59ef255308b8624a36223ffbdf9989"
head "https://github.com/LMDB/lmdb.git", :branch => "mdb.master"
bottle do
cellar :any
sha256 "3937af8efc92e6786f5f6406ea02a04036cf0ecacf4ac31705486792073e644e" => :sierra
sha256 "daed319fbdae70b79a6413fcd0c6d17df2cf1a5ff8ed80fcd3ae3c6820cdfcef" => :el_capitan
sha256 "0aa8da475dd4f4f8cd0500244d37f3f301d4c50b96bca133535906f3a2d1a0f2" => :yosemite
sha256 "d08670a1b23fcea78ed3f192772c28ed1b995249aeb61e0b50391abb01d66f72" => :mavericks
end
def install
cd "libraries/liblmdb" do
# Reported 19 Aug 2016: http://www.openldap.org/its/index.cgi?findid=8481
inreplace "Makefile", ".so", ".dylib"
system "make"
system "make", "test"
system "make", "install", "prefix=#{prefix}"
end
end
test do
assert_match version.to_s, shell_output("#{bin}/mdb_dump -V")
end
end