aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-08 22:13:02 -0700
committerAdam Vandenberg2012-08-08 22:27:28 -0700
commitba3fadf210786b9bb0367d8e97f3ea0c596da76b (patch)
treeea754ce12ca23e9c29a1eeef9f335b6177baa6b4 /Library
parent5cfe2a90c84823c5bb8580ebb24177209089902a (diff)
downloadhomebrew-ba3fadf210786b9bb0367d8e97f3ea0c596da76b.tar.bz2
berkeley-db: use options dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/berkeley-db.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/berkeley-db.rb b/Library/Formula/berkeley-db.rb
index 2811958e1..98eca722d 100644
--- a/Library/Formula/berkeley-db.rb
+++ b/Library/Formula/berkeley-db.rb
@@ -5,18 +5,17 @@ class BerkeleyDb < Formula
url 'http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz'
sha1 '32e43c4898c8996750c958a90c174bd116fcba83'
- def options
- [['--without-java', 'Compile without Java support.']]
- end
+ option 'without-java', 'Compile without Java support.'
def install
# BerkeleyDB dislikes parallel builds
ENV.deparallelize
args = ["--disable-debug",
- "--prefix=#{prefix}", "--mandir=#{man}",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
"--enable-cxx"]
- args << "--enable-java" unless ARGV.include? "--without-java"
+ args << "--enable-java" unless build.include? "--without-java"
# BerkeleyDB requires you to build everything from the build_unix subdirectory
cd 'build_unix' do