homebrew-core/Formula/libzdb.rb
2014-02-11 11:48:54 -06:00

25 lines
658 B
Ruby

require 'formula'
class Libzdb < Formula
homepage 'http://tildeslash.com/libzdb/'
url 'http://tildeslash.com/libzdb/dist/libzdb-3.0.tar.gz'
sha1 'bcf14c11cfcd0c05ecc8740f43cd0d6170406dc1'
depends_on :postgresql => :recommended
depends_on :mysql => :recommended
depends_on 'sqlite' => :recommended
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--without-postgresql" if build.without? 'postgresql'
args << "--without-mysql" if build.without? 'mysql'
args << "--without-sqlite" if build.without? 'sqlite'
system "./configure", *args
system "make install"
end
end