aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-25 09:46:26 -0700
committerAdam Vandenberg2012-08-25 09:46:26 -0700
commit6c5d64583a13c875702e1f5fb11461cf9882ebd6 (patch)
tree0511a3052e50723052cbda3658762475fb4266b2 /Library
parent3e62649029b5dbfbbeb251fc36b730a2f90b6e25 (diff)
downloadhomebrew-6c5d64583a13c875702e1f5fb11461cf9882ebd6.tar.bz2
tokyo-tyrant: use new dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tokyo-tyrant.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/tokyo-tyrant.rb b/Library/Formula/tokyo-tyrant.rb
index b637c2379..2e11431f6 100644
--- a/Library/Formula/tokyo-tyrant.rb
+++ b/Library/Formula/tokyo-tyrant.rb
@@ -3,18 +3,16 @@ require 'formula'
class TokyoTyrant < Formula
homepage 'http://fallabs.com/tokyotyrant/'
url 'http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz'
- md5 'a47e58897bd1cbbac173d5a66cc32ae3'
+ sha1 '060ac946a9ac902c1d244ffafd444f0e5840c0ce'
- depends_on 'tokyo-cabinet'
- depends_on 'lua' unless ARGV.include? "--no-lua"
+ option "no-lua", "Disable Lua support"
- def options
- [["--no-lua", "Disable Lua support."]]
- end
+ depends_on 'tokyo-cabinet'
+ depends_on 'lua' => :recommended unless build.include? "no-lua"
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"