blob: c6547d27465c92b4792f36d57ce66d37a718012f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class KyotoTycoon < Formula
url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.38.tar.gz'
homepage 'http://fallabs.com/kyototycoon/'
md5 '00675ed852c374ad89af99c85f22a791'
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
|