v8cgi: Fix logic error with parentheses

v8cgi add parentheses around an implied if, so args get its value.
Closes Homebrew/homebrew#8126.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Nibbles 2bits 2011-10-14 22:33:54 -07:00 committed by Jack Nagel
parent 72261292ca
commit 834f661d9a
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ class V8cgi < Formula
inreplace 'SConstruct', '../v8', v8_prefix
args = ["config_file=#{conf}", "v8_path=#{v8_prefix}"]
args << (ARGV.include? '--with-dom') ? 'dom=1' : 'dom=0'
args << (ARGV.include? '--with-gd') ? 'gd=1' : 'gd=0'
args << (ARGV.include? '--with-sqlite') ? 'sqlite=1' : 'sqlite=0'
args << ((ARGV.include? '--with-dom') ? 'dom=1' : 'dom=0')
args << ((ARGV.include? '--with-gd') ? 'gd=1' : 'gd=0')
args << ((ARGV.include? '--with-sqlite') ? 'sqlite=1' : 'sqlite=0')
system "scons",
"-j #{ENV.make_jobs}",