9c33f0b65d
Rationale: java is an optional OS X component, so don't try to build with Java by default. Nothing in core uses the java components. Closes Homebrew/homebrew#14411.
30 lines
837 B
Ruby
30 lines
837 B
Ruby
require 'formula'
|
|
|
|
class BerkeleyDb < Formula
|
|
homepage 'http://www.oracle.com/technology/products/berkeley-db/index.html'
|
|
url 'http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz'
|
|
sha1 '32e43c4898c8996750c958a90c174bd116fcba83'
|
|
|
|
option 'with-java', 'Compile with Java support.'
|
|
|
|
def install
|
|
# BerkeleyDB dislikes parallel builds
|
|
ENV.deparallelize
|
|
|
|
args = ["--disable-debug",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
"--enable-cxx"]
|
|
args << "--enable-java" if build.include? "with-java"
|
|
|
|
# BerkeleyDB requires you to build everything from the build_unix subdirectory
|
|
cd 'build_unix' do
|
|
system "../dist/configure", *args
|
|
system "make install"
|
|
|
|
# use the standard docs location
|
|
doc.parent.mkpath
|
|
mv prefix+'docs', doc
|
|
end
|
|
end
|
|
end
|