aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-28 15:18:57 -0700
committerAdam Vandenberg2012-10-28 15:18:57 -0700
commit0641dc76e2994b10c83ed1a2bcb5f76c5a3b7119 (patch)
treefbb0b11627f511e4ea141b3808a3b5d3ae535527
parent64608adca28b66e08a4ae268411656bee3cfda25 (diff)
downloadhomebrew-0641dc76e2994b10c83ed1a2bcb5f76c5a3b7119.tar.bz2
berkeley-db: make java opt-in
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 #14411.
-rw-r--r--Library/Formula/berkeley-db.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/berkeley-db.rb b/Library/Formula/berkeley-db.rb
index 711c3ab5a..8c1396d57 100644
--- a/Library/Formula/berkeley-db.rb
+++ b/Library/Formula/berkeley-db.rb
@@ -5,7 +5,7 @@ class BerkeleyDb < Formula
url 'http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz'
sha1 '32e43c4898c8996750c958a90c174bd116fcba83'
- option 'without-java', 'Compile without Java support.'
+ option 'with-java', 'Compile with Java support.'
def install
# BerkeleyDB dislikes parallel builds
@@ -15,7 +15,7 @@ class BerkeleyDb < Formula
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-cxx"]
- args << "--enable-java" unless build.include? "without-java"
+ args << "--enable-java" if build.include? "with-java"
# BerkeleyDB requires you to build everything from the build_unix subdirectory
cd 'build_unix' do