homebrew-core/Formula/libzdb.rb
Brett Koonce 3d1e152fb3 libzdb 2.11.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-24 06:52:23 -07:00

28 lines
990 B
Ruby

require 'formula'
class Libzdb < Formula
homepage 'http://tildeslash.com/libzdb/'
url 'http://tildeslash.com/libzdb/dist/libzdb-2.11.2.tar.gz'
sha1 'a1f848dcf666566d7a481e68fdd6ad58268023f0'
option 'without-sqlite', "Compile without SQLite support"
option 'without-postgresql', "Compile without PostgreSQL support"
option 'without-mysql', "Compile without MySQL support"
depends_on :postgresql unless build.include? 'without-postgresql'
depends_on :mysql unless build.include? 'without-mysql'
depends_on 'sqlite' unless build.include? 'without-sqlite'
def install
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"]
args << "--without-sqlite" if build.include? 'without-sqlite'
args << "--without-mysql" if build.include? 'without-mysql'
args << "--without-postgresql" if build.include? 'without-postgresql'
system "./configure", *args
system "make install"
end
end