2012-03-19 09:36:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libzdb < Formula
|
|
|
|
homepage 'http://tildeslash.com/libzdb/'
|
2013-01-18 04:44:40 +00:00
|
|
|
url 'http://tildeslash.com/libzdb/dist/libzdb-2.11.1.tar.gz'
|
|
|
|
sha1 'c6fd44a779e7e0c112ebd7b30a1ee08f86feb41e'
|
2012-03-19 09:36:56 +00:00
|
|
|
|
2012-10-21 19:54:36 +00:00
|
|
|
option 'without-sqlite', "Compile without SQLite support"
|
|
|
|
option 'without-postgresql', "Compile without PostgreSQL support"
|
|
|
|
option 'without-mysql', "Compile without MySQL support"
|
2012-03-19 09:36:56 +00:00
|
|
|
|
2012-11-06 02:03:26 +00:00
|
|
|
depends_on :postgresql unless build.include? 'without-postgresql'
|
|
|
|
depends_on :mysql unless build.include? 'without-mysql'
|
|
|
|
depends_on 'sqlite' unless build.include? 'without-sqlite'
|
2012-03-19 09:36:56 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"]
|
|
|
|
|
2012-10-21 19:54:36 +00:00
|
|
|
args << "--without-sqlite" if build.include? 'without-sqlite'
|
|
|
|
args << "--without-mysql" if build.include? 'without-mysql'
|
|
|
|
args << "--without-postgresql" if build.include? 'without-postgresql'
|
2012-03-19 09:36:56 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|