aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ngspice.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb
index 72d005439..50317944c 100644
--- a/Library/Formula/ngspice.rb
+++ b/Library/Formula/ngspice.rb
@@ -16,7 +16,11 @@ class Ngspice < Formula
--prefix=#{prefix}
--with-editline=yes
]
- args << "--enable-x" if build.with? "x"
+ if build.with? "x"
+ args << "--with-x"
+ else
+ args << "--without-x"
+ end
args << "--enable-xspice" if build.with? "xspice"
system "./configure", *args