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
parent
72261292ca
commit
834f661d9a
|
@ -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}",
|
||||
|
|
Loading…
Reference in New Issue