2010-11-12 09:14:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class KyotoTycoon < Formula
|
2011-07-25 17:29:33 +00:00
|
|
|
url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.49.tar.gz'
|
2010-11-12 09:14:57 +00:00
|
|
|
homepage 'http://fallabs.com/kyototycoon/'
|
2011-07-25 17:29:33 +00:00
|
|
|
sha1 '50832133c6c645ffbb994b2d83a3e8bb7f5ae669'
|
2010-11-12 09:14:57 +00:00
|
|
|
|
|
|
|
depends_on 'lua' unless ARGV.include? "--no-lua"
|
|
|
|
depends_on 'kyoto-cabinet'
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--no-lua", "Disable Lua support (and don't force Lua install.)"]]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
args << "--enable-lua" unless ARGV.include? "--no-lua"
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|