2010-10-31 20:41:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ngspice < Formula
|
2010-10-31 20:41:34 +00:00
|
|
|
homepage 'http://ngspice.sourceforge.net/'
|
2012-04-06 18:43:12 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/24/ngspice-24.tar.gz'
|
2012-02-05 06:59:19 +00:00
|
|
|
md5 'e9ed7092da3e3005aebd892996b2bd5f'
|
2010-10-31 20:41:34 +00:00
|
|
|
|
2012-04-06 18:43:12 +00:00
|
|
|
def options
|
|
|
|
[["--without-xspice", "Build without x-spice extensions"]]
|
|
|
|
end
|
|
|
|
|
2010-10-31 20:41:34 +00:00
|
|
|
def install
|
2012-04-06 18:43:12 +00:00
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-editline=yes",
|
|
|
|
"--enable-x"]
|
|
|
|
args << "--enable-xspice" unless ARGV.include? "--without-xspice"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-10-31 20:41:34 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2012-04-06 18:43:12 +00:00
|
|
|
def caveats;
|
2010-10-31 20:41:34 +00:00
|
|
|
"Note: ngspice is an X11 application."
|
2012-04-06 18:43:12 +00:00
|
|
|
end
|
2010-10-31 20:41:34 +00:00
|
|
|
end
|