homebrew-core/Formula/ngspice.rb
Severin Smith 1ead893843 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>
2012-04-08 12:01:10 -07:00

27 lines
696 B
Ruby

require 'formula'
class Ngspice < Formula
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
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;
"Note: ngspice is an X11 application."
end
end