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:
parent
822b6a4e48
commit
7845106d12
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue