aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-09-18 08:50:08 -0700
committerTim D. Smith2014-09-18 10:03:33 -0700
commitbbf9ad18c54bb56a13a62a88222304126780eb12 (patch)
tree0ec1d28896945681a5f90ba9099c72a4dc5c9fe8 /Library
parent9999237a37091c38380751f023636e4c1ff1b844 (diff)
downloadhomebrew-bbf9ad18c54bb56a13a62a88222304126780eb12.tar.bz2
ngspice: pass X build flags explicitly
ngspice's configure needs --without-x to stop trying to link to X libraries, but also needs --with-x to actually include X support. Closes #32403.
Diffstat (limited to 'Library')
-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