aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-13 12:08:07 -0600
committerJack Nagel2014-11-13 12:08:07 -0600
commitabf7254282b8db4cbb64ff5e0946bff387807a92 (patch)
treeefce6e625da5637b34cfad1bd277797e22958b9a /Library
parentdc6ac806321a8bfaaac2bb3cf1bb3c546f163d08 (diff)
downloadhomebrew-abf7254282b8db4cbb64ff5e0946bff387807a92.tar.bz2
ngspice: update x11 option
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ngspice.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb
index 50317944c..8c49df0da 100644
--- a/Library/Formula/ngspice.rb
+++ b/Library/Formula/ngspice.rb
@@ -5,10 +5,11 @@ class Ngspice < Formula
url 'https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz'
sha1 '7c043c604b61f76ad1941defeeac6331efc48ad2'
- option "with-x", "Build with X support"
option "without-xspice", "Build without x-spice extensions"
- depends_on :x11 if build.with? "x"
+ deprecated_option "with-x" => "with-x11"
+
+ depends_on :x11 => :optional
def install
args = %W[
@@ -16,7 +17,7 @@ class Ngspice < Formula
--prefix=#{prefix}
--with-editline=yes
]
- if build.with? "x"
+ if build.with? "x11"
args << "--with-x"
else
args << "--without-x"