kyoto-tycoon: locate kyoto-cabinet for non-/usr/local installs

Closes Homebrew/homebrew#18955.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
m0t0k1ch1 2013-04-04 16:29:49 +09:00 committed by Adam Vandenberg
parent 822b6a4e48
commit 7845106d12

View file

@ -11,7 +11,9 @@ class KyotoTycoon < Formula
depends_on 'kyoto-cabinet'
def install
args = ["--prefix=#{prefix}"]
# 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