aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/v8cgi.rb
diff options
context:
space:
mode:
authorNibbles 2bits2011-10-14 22:33:54 -0700
committerJack Nagel2011-10-16 20:53:36 -0500
commit33b5ea5a392300db6488b966da61aa4730658253 (patch)
tree2341ca78aedc45efc10066fa82e6bf7a28fca9a4 /Library/Formula/v8cgi.rb
parent58e146bd99e9eb0deff08391f3ea92829567cb9a (diff)
downloadhomebrew-33b5ea5a392300db6488b966da61aa4730658253.tar.bz2
v8cgi: Fix logic error with parentheses
v8cgi add parentheses around an implied if, so args get its value. Closes #8126. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/v8cgi.rb')
-rw-r--r--Library/Formula/v8cgi.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/v8cgi.rb b/Library/Formula/v8cgi.rb
index b8be2f0cd..f35531d70 100644
--- a/Library/Formula/v8cgi.rb
+++ b/Library/Formula/v8cgi.rb
@@ -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}",