Skip to content

Commit b6b5fd7

Browse files
BrewTestBotdaeho-ro
authored andcommitted
ngspice 45.2
ngspice: regenerate configure file Signed-off-by: Rui Chen <[email protected]>
1 parent 47c8dc9 commit b6b5fd7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Formula/n/ngspice.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
class Ngspice < Formula
22
desc "Spice circuit simulator"
33
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"
66
license :cannot_represent
7+
head "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"
78

89
livecheck do
910
url :stable
@@ -20,14 +21,9 @@ class Ngspice < Formula
2021
sha256 x86_64_linux: "b39aff234f3c3b2f7520ed58837b70778c619dba4a56b9d4f29c3157bb99f482"
2122
end
2223

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
3127
depends_on "fftw"
3228
depends_on "freetype"
3329
depends_on "libngspice"
@@ -47,6 +43,10 @@ class Ngspice < Formula
4743
end
4844

4945
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+
5050
# Xft #includes <ft2build.h>, not <freetype2/ft2build.h>, hence freetype2
5151
# must be put into the search path.
5252
ENV.append "CFLAGS", "-I#{Formula["freetype"].opt_include}/freetype2"

0 commit comments

Comments
 (0)