2012-03-19 09:36:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libzdb < Formula
|
|
|
|
homepage 'http://tildeslash.com/libzdb/'
|
2013-06-16 02:49:10 +00:00
|
|
|
url 'http://tildeslash.com/libzdb/dist/libzdb-2.11.3.tar.gz'
|
|
|
|
sha1 '0554b6a83e6767488bff58a7d0bd3ad024be092b'
|
2012-03-19 09:36:56 +00:00
|
|
|
|
2013-06-02 22:13:06 +00:00
|
|
|
depends_on :postgresql => :recommended
|
|
|
|
depends_on :mysql => :recommended
|
|
|
|
depends_on 'sqlite' => :recommended
|
2012-03-19 09:36:56 +00:00
|
|
|
|
|
|
|
def install
|
2013-06-04 01:43:15 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2012-03-19 09:36:56 +00:00
|
|
|
|
2013-06-02 22:13:06 +00:00
|
|
|
args << "--without-postgresql" if build.without? 'postgresql'
|
|
|
|
args << "--without-mysql" if build.without? 'mysql'
|
|
|
|
args << "--without-sqlite" if build.without? 'sqlite'
|
2012-03-19 09:36:56 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|