diff options
| author | Mike McQuaid | 2012-09-02 01:08:44 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2012-09-04 19:44:43 -0700 |
| commit | 0a66823b39b7bf2a5ef4362550a200bf99591645 (patch) | |
| tree | dfec1fd2068fcd11534c500c815a7526b67002da /Library | |
| parent | 80ad803039630d4d50c9d4073a57cc5ed5a19948 (diff) | |
| download | homebrew-0a66823b39b7bf2a5ef4362550a200bf99591645.tar.bz2 | |
ngspice: fix test and X11 dependency.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ngspice.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb index 7143c12cb..544f0e52e 100644 --- a/Library/Formula/ngspice.rb +++ b/Library/Formula/ngspice.rb @@ -5,24 +5,25 @@ class Ngspice < Formula url 'http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/24/ngspice-24.tar.gz' sha1 'a6bb0e65c1c07d48f1d3e4df44fc17f6262952eb' + option "with-x", "Build with X support" option "without-xspice", "Build without x-spice extensions" - depends_on :x11 + depends_on :x11 if MacOS::X11.installed? or build.include? "with-x" def install args = %W[ --disable-dependency-tracking --prefix=#{prefix} --with-editline=yes - --enable-x ] + args << "--enable-x" if build.include? "with-x" args << "--enable-xspice" unless build.include? "without-xspice" system "./configure", *args system "make install" end - def caveats; - "Note: ngspice is an X11 application." - end + def test + system "#{bin}/ngspice", "-v" + end end |
