homebrew-core/Formula/tokyo-tyrant.rb

24 lines
538 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class TokyoTyrant < Formula
url 'http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz'
homepage 'http://fallabs.com/tokyotyrant/'
md5 'a47e58897bd1cbbac173d5a66cc32ae3'
depends_on 'tokyo-cabinet'
depends_on 'lua' unless ARGV.include? "--no-lua"
def options
2012-02-08 05:14:24 +00:00
[["--no-lua", "Disable Lua support."]]
end
def install
args = ["--prefix=#{prefix}"]
args << "--enable-lua" unless ARGV.include? "--no-lua"
system "./configure", *args
system "make"
system "make install"
end
end