homebrew-core/Formula/kyoto-tycoon.rb
m0t0k1ch1 7845106d12 kyoto-tycoon: locate kyoto-cabinet for non-/usr/local installs
Closes Homebrew/homebrew#18955.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-04 08:46:10 -07:00

23 lines
662 B
Ruby

require 'formula'
class KyotoTycoon < Formula
homepage 'http://fallabs.com/kyototycoon/'
url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz'
sha1 'e5433833e681f8755ff6b9f7209029ec23914ce6'
option "no-lua", "Disable Lua support"
depends_on 'lua' unless build.include? "no-lua"
depends_on 'kyoto-cabinet'
def install
# Locate kyoto-cabinet for non-/usr/local builds
cabinet = Formula.factory("kyoto-cabinet")
args = ["--prefix=#{prefix}", "--with-kc=#{cabinet.opt_prefix}"]
args << "--enable-lua" unless build.include? "no-lua"
system "./configure", *args
system "make"
system "make install"
end
end