1
1
class Ngspice < Formula
2
2
desc "Spice circuit simulator"
3
3
homepage "https://ngspice.sourceforge.io/"
4
- url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45/ngspice-45.tar.gz"
5
- sha256 "f1aad8abac2828a7b71da66411de8e406524e75f3066e46755439c490442d734 "
4
+ url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45.2 /ngspice-45.2 .tar.gz"
5
+ sha256 "ba8345f4c3774714c10f33d7da850d361cec7d14b3a295d0dc9fd96f7423812d "
6
6
license :cannot_represent
7
+ head "https://git.code.sf.net/p/ngspice/ngspice.git" , branch : "master"
7
8
8
9
livecheck do
9
10
url :stable
@@ -20,14 +21,9 @@ class Ngspice < Formula
20
21
sha256 x86_64_linux : "b39aff234f3c3b2f7520ed58837b70778c619dba4a56b9d4f29c3157bb99f482"
21
22
end
22
23
23
- head do
24
- url "https://git.code.sf.net/p/ngspice/ngspice.git" , branch : "master"
25
-
26
- depends_on "autoconf" => :build
27
- depends_on "automake" => :build
28
- depends_on "libtool" => :build
29
- end
30
-
24
+ depends_on "autoconf" => :build
25
+ depends_on "automake" => :build
26
+ depends_on "libtool" => :build
31
27
depends_on "fftw"
32
28
depends_on "freetype"
33
29
depends_on "libngspice"
@@ -47,6 +43,10 @@ class Ngspice < Formula
47
43
end
48
44
49
45
def install
46
+ odie "check if autoreconf line can be removed" if version > "45.2"
47
+ # regenerate since the files were generated using automake 1.16
48
+ system "autoreconf" , "--install" , "--force" , "--verbose"
49
+
50
50
# Xft #includes <ft2build.h>, not <freetype2/ft2build.h>, hence freetype2
51
51
# must be put into the search path.
52
52
ENV . append "CFLAGS" , "-I#{ Formula [ "freetype" ] . opt_include } /freetype2"
0 commit comments