aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tokyo-tyrant.rb
blob: 2e11431f6b33c682dc9c1a4c412f7f5dc6e73142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class TokyoTyrant < Formula
  homepage 'http://fallabs.com/tokyotyrant/'
  url 'http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz'
  sha1 '060ac946a9ac902c1d244ffafd444f0e5840c0ce'

  option "no-lua", "Disable Lua support"

  depends_on 'tokyo-cabinet'
  depends_on 'lua' => :recommended unless build.include? "no-lua"

  def install
    args = ["--prefix=#{prefix}"]
    args << "--enable-lua" unless build.include? "no-lua"

    system "./configure", *args
    system "make"
    system "make install"
  end
end