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