homebrew-core/Formula/kyoto-tycoon.rb

24 lines
570 B
Ruby

require 'formula'
class KyotoTycoon <Formula
url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.7.tar.gz'
homepage 'http://fallabs.com/kyototycoon/'
md5 'c6ba2b75e6f675c4fbe5d50b3f26143d'
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