mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
berkeley-db: use options dsl
This commit is contained in:
1 parent
5cfe2a90c8
commit
ba3fadf210
1 file changed
+4
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user