aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-14 13:19:46 -0700
committerAdam Vandenberg2014-05-14 13:20:01 -0700
commit7d0848aebee16c11307bbe0192be5f331944b020 (patch)
treeba481311e0e3c701997d6520fc45da684c029722 /Library/Formula
parent00df6d890493a3ca264976d71f73b50b34817c5e (diff)
downloadhomebrew-7d0848aebee16c11307bbe0192be5f331944b020.tar.bz2
kyoto-tycoon: find non-/usr/local lua
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/kyoto-tycoon.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/Library/Formula/kyoto-tycoon.rb b/Library/Formula/kyoto-tycoon.rb
index d5914531b..abdc87419 100644
--- a/Library/Formula/kyoto-tycoon.rb
+++ b/Library/Formula/kyoto-tycoon.rb
@@ -1,14 +1,12 @@
-require 'formula'
+require "formula"
class KyotoTycoon < Formula
- homepage 'http://fallabs.com/kyototycoon/'
- url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz'
- sha1 'e5433833e681f8755ff6b9f7209029ec23914ce6'
+ 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'
+ depends_on "lua" => :recommended
+ depends_on "kyoto-cabinet"
patch :DATA if MacOS.version >= :mavericks
@@ -16,7 +14,13 @@ class KyotoTycoon < Formula
# Locate kyoto-cabinet for non-/usr/local builds
cabinet = Formula["kyoto-cabinet"].opt_prefix
args = ["--prefix=#{prefix}", "--with-kc=#{cabinet}"]
- args << "--enable-lua" unless build.include? "no-lua"
+
+ if build.with? "lua"
+ lua = Formula["lua"].opt_prefix
+ args << "--with-lua=#{lua}"
+ else
+ args << "--enable-lua"
+ end
system "./configure", *args
system "make"