aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSeverin Smith2012-04-06 14:43:12 -0400
committerAdam Vandenberg2012-04-08 12:01:10 -0700
commit8f729a759474a862acbab1fd6ecb2121b61830f2 (patch)
treee31c5231ee9316290769b9971813536938fa627e /Library
parent32db4e2fae4f0e5654f975959a477b758e023d6c (diff)
downloadhomebrew-8f729a759474a862acbab1fd6ecb2121b61830f2.tar.bz2
ngspice: build with xspice support
xspice provides compatibility with keyfeatures from spice2 which are absent from spice3. This means many models available on the internet or from manufactures which were written in spice2 will be compatible with ngspice. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ngspice.rb22
1 files changed, 15 insertions, 7 deletions
diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb
index 4bdba7baf..f5cd363a3 100644
--- a/Library/Formula/ngspice.rb
+++ b/Library/Formula/ngspice.rb
@@ -1,19 +1,27 @@
require 'formula'
class Ngspice < Formula
- url 'http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/24/ngspice-24.tar.gz'
homepage 'http://ngspice.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/24/ngspice-24.tar.gz'
md5 'e9ed7092da3e3005aebd892996b2bd5f'
+ def options
+ [["--without-xspice", "Build without x-spice extensions"]]
+ end
+
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--with-editline=yes",
- "--enable-x"
+ args = ["--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-editline=yes",
+ "--enable-x"]
+ args << "--enable-xspice" unless ARGV.include? "--without-xspice"
+
+ system "./configure", *args
system "make install"
end
- def caveats
+ def caveats;
"Note: ngspice is an X11 application."
- end
+ end
end