diff options
| author | Adam Vandenberg | 2013-02-10 17:33:14 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-02-10 17:44:47 -0800 | 
| commit | 4e500f4888525d18afccdec9e076a6c757006539 (patch) | |
| tree | ae65954467da73bc958282ba3b96b3b44b9c5aab | |
| parent | cbf4be683e81cff719a2d0d9b4c9a74ce5026bb8 (diff) | |
| download | homebrew-4e500f4888525d18afccdec9e076a6c757006539.tar.bz2 | |
berkeley-db: add --enable-sql option
Closes #15166.
| -rw-r--r-- | Library/Formula/berkeley-db.rb | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/Library/Formula/berkeley-db.rb b/Library/Formula/berkeley-db.rb index f5eb323ef..537f593a6 100644 --- a/Library/Formula/berkeley-db.rb +++ b/Library/Formula/berkeley-db.rb @@ -6,19 +6,24 @@ class BerkeleyDb < Formula    sha1 '32e43c4898c8996750c958a90c174bd116fcba83'    option 'with-java', 'Compile with Java support.' +  option 'enable-sql', 'Compile with SQL support.'    # Fix build under Xcode 4.6 +  # Double-underscore names are reserved, and __atomic_compare_exchange is now +  # a built-in, so rename this to something non-conflicting.    def patches; DATA; end    def install      # BerkeleyDB dislikes parallel builds      ENV.deparallelize - -    args = ["--disable-debug", -            "--prefix=#{prefix}", -            "--mandir=#{man}", -            "--enable-cxx"] +    args = %W[ +      --disable-debug +      --prefix=#{prefix} +      --mandir=#{man} +      --enable-cxx +    ]      args << "--enable-java" if build.include? "with-java" +    args << "--enable-sql" if build.include? "enable-sql"      # BerkeleyDB requires you to build everything from the build_unix subdirectory      cd 'build_unix' do @@ -27,7 +32,7 @@ class BerkeleyDb < Formula        # use the standard docs location        doc.parent.mkpath -      mv prefix+'docs', doc +      mv prefix/'docs', doc      end    end  end | 
