From abf7254282b8db4cbb64ff5e0946bff387807a92 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 13 Nov 2014 12:08:07 -0600 Subject: ngspice: update x11 option --- Library/Formula/ngspice.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3