diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/apollo.rb | 13 |
1 files changed, 4 insertions, 9 deletions
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 |
