aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 21:59:26 -0700
committerAdam Vandenberg2012-08-27 21:59:26 -0700
commit4eec23ef123aa6fff3e6f9086006dd567649b4cd (patch)
tree0f0277b839e971a4dff0c6781110e3e04f90d4d1 /Library/Formula
parent81579a7d4f112f0e0f306d81be3802b40e4568e9 (diff)
downloadhomebrew-4eec23ef123aa6fff3e6f9086006dd567649b4cd.tar.bz2
kyoto-tycoon: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/kyoto-tycoon.rb10
1 files changed, 4 insertions, 6 deletions
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"