bdb - 5.1.19 and --without-java option

This commit is contained in:
Adam Vandenberg 2010-10-31 12:19:28 -07:00
parent 216f490d44
commit 344971d808

View file

@ -1,23 +1,27 @@
require 'formula'
class BerkeleyDb <Formula
url 'http://download.oracle.com/berkeley-db/db-5.0.26.tar.gz'
url 'http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz'
homepage 'http://www.oracle.com/technology/products/berkeley-db/index.html'
md5 '8723c97c03d12c3afc8333df92d5089a'
md5 '76fcbfeebfcd09ba0b4d96bfdf8d884d'
def options
[['--without-java', 'Compile without Java support.']]
end
def install
# BerkeleyDB dislikes parallel builds
ENV.deparallelize
ENV.O3 # takes an hour or more with link time optimisation
args = ["--disable-debug",
"--prefix=#{prefix}", "--mandir=#{man}",
"--enable-cxx"]
args << "--enable-java" unless ARGV.include? "--without-java"
# BerkeleyDB requires you to build everything from the build_unix subdirectory
Dir.chdir 'build_unix' do
system "../dist/configure", "--disable-debug",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-cxx",
"--enable-java"
system "../dist/configure", *args
system "make install"
# use the standard docs location