homebrew-core/Formula/berkeley-db.rb

43 lines
1.3 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class BerkeleyDb < Formula
desc "High performance key/value database"
homepage "https://www.oracle.com/technology/products/berkeley-db/index.html"
url "http://download.oracle.com/berkeley-db/db-6.1.19.tar.gz"
sha256 "ad8aa5f9ede68118732f78718128e29e4d765e46a87dce54fa9143d9de8684ce"
2010-10-31 19:19:28 +00:00
2014-02-24 15:11:24 +00:00
bottle do
cellar :any
2015-02-23 19:54:25 +00:00
sha1 "1e80c66e55a970b39829cc98e41f3252557d3736" => :yosemite
sha1 "296738e8b7d2d23fafc19f3eaad6693e18bab05d" => :mavericks
sha1 "9573e87c5c4a5bf39f89b712c59b5329cb7c0b41" => :mountain_lion
2014-02-24 15:11:24 +00:00
end
option "with-java", "Compile with Java support."
option "enable-sql", "Compile with SQL support."
2009-09-24 02:54:00 +00:00
def install
# BerkeleyDB dislikes parallel builds
ENV.deparallelize
# --enable-compat185 is necessary because our build shadows
# the system berkeley db 1.x
args = %W[
--disable-debug
--prefix=#{prefix}
--mandir=#{man}
--enable-cxx
--enable-compat185
]
args << "--enable-java" if build.with? "java"
args << "--enable-sql" if build.include? "enable-sql"
2010-10-31 19:19:28 +00:00
2009-09-24 02:54:00 +00:00
# BerkeleyDB requires you to build everything from the build_unix subdirectory
cd "build_unix" do
2010-10-31 19:19:28 +00:00
system "../dist/configure", *args
system "make", "install"
2009-12-21 17:53:21 +00:00
# use the standard docs location
doc.parent.mkpath
mv prefix/"docs", doc
2009-09-24 02:54:00 +00:00
end
end
end