homebrew-core/Formula/libzdb.rb
2013-06-02 17:13:06 -05:00

24 lines
689 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'
depends_on :postgresql => :recommended
depends_on :mysql => :recommended
depends_on 'sqlite' => :recommended
def install
args = ["--disable-debug",
"--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