2011-03-10 05:11:03 +00:00
|
|
|
class BerkeleyDb < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "High performance key/value database"
|
2015-08-03 12:55:31 +00:00
|
|
|
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
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
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
|
2013-05-26 23:28:01 +00:00
|
|
|
# --enable-compat185 is necessary because our build shadows
|
|
|
|
# the system berkeley db 1.x
|
2013-02-11 01:33:14 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
--enable-cxx
|
2013-05-26 23:28:01 +00:00
|
|
|
--enable-compat185
|
2013-02-11 01:33:14 +00:00
|
|
|
]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--enable-java" if build.with? "java"
|
2013-02-11 01:33:14 +00:00
|
|
|
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
|
2015-08-03 12:55:31 +00:00
|
|
|
cd "build_unix" do
|
2010-10-31 19:19:28 +00:00
|
|
|
system "../dist/configure", *args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-12-21 17:53:21 +00:00
|
|
|
|
|
|
|
# use the standard docs location
|
|
|
|
doc.parent.mkpath
|
2015-08-03 12:55:31 +00:00
|
|
|
mv prefix/"docs", doc
|
2009-09-24 02:54:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|