blob: 7143c12cbbc60d8d64eff161f021f64eaab2ef09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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'
sha1 'a6bb0e65c1c07d48f1d3e4df44fc17f6262952eb'
option "without-xspice", "Build without x-spice extensions"
depends_on :x11
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--with-editline=yes
--enable-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
end
|