782007ff6e
Way back in the day, Homebrew defaulted to LLVM/-O3. A lot of stuff failed to compile, and a lot of stuff just took forever with -O4. We don't default this way anymore, and in fact use -Os per Apple guidelines. So remove these old "fixes" since they are no longer needed.
31 lines
851 B
Ruby
31 lines
851 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.15.tar.gz'
|
|
md5 '5493fb5f7cc3915887c836b096f18773'
|
|
|
|
def options
|
|
[['--without-java', 'Compile without Java support.']]
|
|
end
|
|
|
|
def install
|
|
# BerkeleyDB dislikes parallel builds
|
|
ENV.deparallelize
|
|
|
|
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
|
|
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
|