aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libzdb.rb
blob: 3c716b1a01e0cf95718a69e93fbf5fe7e57ba05b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'

class Libzdb < Formula
  homepage 'http://tildeslash.com/libzdb/'
  url 'http://tildeslash.com/libzdb/dist/libzdb-3.0.tar.gz'
  sha1 'bcf14c11cfcd0c05ecc8740f43cd0d6170406dc1'

  bottle do
    cellar :any
    sha1 "0fc6558081d2bdc7afe7b606f8dfff2ea1b6ad2b" => :mavericks
    sha1 "c6b1830eb2d66ae7ff7a14db7ceaf59ca9b5d073" => :mountain_lion
    sha1 "774f7d8719efdde090a409a5ee4772a24ab87fb7" => :lion
  end

  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