2010-11-12 09:14:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class KyotoTycoon < Formula
|
2010-11-12 09:14:57 +00:00
|
|
|
homepage 'http://fallabs.com/kyototycoon/'
|
2012-06-04 01:54:57 +00:00
|
|
|
url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz'
|
|
|
|
sha1 'e5433833e681f8755ff6b9f7209029ec23914ce6'
|
2010-11-12 09:14:57 +00:00
|
|
|
|
2012-08-28 04:59:26 +00:00
|
|
|
option "no-lua", "Disable Lua support"
|
2010-11-12 09:14:57 +00:00
|
|
|
|
2012-08-28 04:59:26 +00:00
|
|
|
depends_on 'lua' unless build.include? "no-lua"
|
|
|
|
depends_on 'kyoto-cabinet'
|
2010-11-12 09:14:57 +00:00
|
|
|
|
|
|
|
def install
|
2013-04-04 07:29:49 +00:00
|
|
|
# Locate kyoto-cabinet for non-/usr/local builds
|
|
|
|
cabinet = Formula.factory("kyoto-cabinet")
|
|
|
|
args = ["--prefix=#{prefix}", "--with-kc=#{cabinet.opt_prefix}"]
|
2012-08-28 04:59:26 +00:00
|
|
|
args << "--enable-lua" unless build.include? "no-lua"
|
2010-11-12 09:14:57 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|