From bccb399b4917ddd10df95cff500dcd289da948ad Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 30 Jul 2012 13:14:17 -0700 Subject: apollo: use options dsl --- Library/Formula/apollo.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/apollo.rb b/Library/Formula/apollo.rb index 584caf87a..1d9a5c231 100644 --- a/Library/Formula/apollo.rb +++ b/Library/Formula/apollo.rb @@ -20,25 +20,20 @@ class Apollo < Formula version "1.3" md5 '13759c529b238731ebea269254a840b9' - - def options - [ - ["--no-bdb", "Install without bdb store support."], - ["--no-mqtt", "Install without MQTT protocol support."] - ] - end + option "no-bdb", "Install without bdb store support." + option "no-mqtt", "Install without MQTT protocol support." def install prefix.install %w{ LICENSE NOTICE readme.html docs examples } libexec.install Dir['*'] - unless ARGV.include? "--no-bdb" + unless build.include? "no-bdb" BerkeleyDbJe.new.brew do (libexec+"lib").install Dir['*.jar'] end end - unless ARGV.include? "--no-mqtt" + unless build.include? "no-mqtt" FuseMQApolloMQTT.new.brew do (libexec+"lib").install Dir['*.jar'] end -- cgit v1.2.3