homebrew-core/Formula/tokyo-tyrant.rb

22 lines
523 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class TokyoTyrant < Formula
homepage 'http://fallabs.com/tokyotyrant/'
2012-06-04 01:56:12 +00:00
url 'http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz'
2012-08-25 16:46:26 +00:00
sha1 '060ac946a9ac902c1d244ffafd444f0e5840c0ce'
2012-08-25 16:46:26 +00:00
option "no-lua", "Disable Lua support"
2012-08-25 16:46:26 +00:00
depends_on 'tokyo-cabinet'
2013-02-02 03:55:58 +00:00
depends_on 'lua' unless build.include? "no-lua"
def install
args = ["--prefix=#{prefix}"]
2012-08-25 16:46:26 +00:00
args << "--enable-lua" unless build.include? "no-lua"
system "./configure", *args
system "make"
system "make install"
end
end