From 4eec23ef123aa6fff3e6f9086006dd567649b4cd Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 21:59:26 -0700 Subject: kyoto-tycoon: use new dsl --- Library/Formula/kyoto-tycoon.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/kyoto-tycoon.rb b/Library/Formula/kyoto-tycoon.rb index bbd13e830..b27e35e71 100644 --- a/Library/Formula/kyoto-tycoon.rb +++ b/Library/Formula/kyoto-tycoon.rb @@ -5,16 +5,14 @@ class KyotoTycoon < Formula url 'http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz' sha1 'e5433833e681f8755ff6b9f7209029ec23914ce6' - depends_on 'lua' unless ARGV.include? "--no-lua" - depends_on 'kyoto-cabinet' + option "no-lua", "Disable Lua support" - def options - [["--no-lua", "Disable Lua support (and don't force Lua install.)"]] - end + depends_on 'lua' unless build.include? "no-lua" + depends_on 'kyoto-cabinet' def install args = ["--prefix=#{prefix}"] - args << "--enable-lua" unless ARGV.include? "--no-lua" + args << "--enable-lua" unless build.include? "no-lua" system "./configure", *args system "make" -- cgit v1.2.3