Skip to content

Commit 30526a1

Browse files
authored
Merge pull request #236420 from Homebrew/bump-libngspice-45.2
libngspice ngspice 45.2
2 parents 4baeeeb + 8e4f5da commit 30526a1

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed

Formula/lib/libngspice.rb

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
11
class Libngspice < Formula
22
desc "Spice circuit simulator as shared library"
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
formula "ngspice"
1011
end
1112

1213
bottle do
13-
sha256 cellar: :any, arm64_sequoia: "8640f2c59198f340d8a500c68c42fa2c9a4a52d2a01fdf4ed2f5029e21348295"
14-
sha256 cellar: :any, arm64_sonoma: "30852e6c8a36510ea1d2dd62125e67b04643b7f77632f082da72c92f56233813"
15-
sha256 cellar: :any, arm64_ventura: "ed7ed1371490ca0220161cae6ecf9bcc572a6f1f33657a39d206a110b1e115d6"
16-
sha256 cellar: :any, sonoma: "9841e745b6b916b089c4816d1073a23e9ba52258d7a9b6ed79a2812dbc7bcf13"
17-
sha256 cellar: :any, ventura: "abd210c4683adc038574cc03e8c37859af1bc678ae5291614a7a99f7346ce78b"
18-
sha256 cellar: :any_skip_relocation, arm64_linux: "a6559b9a44837e4319d77d3489072e6c3ffa085a44bda2764089ab0ddbf1989a"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "9b380afa18369e0f571e37ff8812ba0946483d145de2f2db08a0f1d996885a52"
14+
sha256 cellar: :any, arm64_sequoia: "e0a459c7db04f315322f670d4a3303061b5ec63c0cc633aa8fe00f14b0b27eea"
15+
sha256 cellar: :any, arm64_sonoma: "7b6aab8c0313bb29e1b5343e344f018c3732df5dd16f6ab3b385a60c5301b337"
16+
sha256 cellar: :any, arm64_ventura: "496ac4b64b5ff3c83663d21ae324946e75040a8633f8dc863ee9335adc4502d6"
17+
sha256 cellar: :any, sonoma: "a3e8c9a2ea5325ff2fb4ef589cce8626f9acfde4a7ed4a74d8d837a80206c3ab"
18+
sha256 cellar: :any, ventura: "51dc5e48e6dfe8c49c1d88fcbf96d6161f6505d7389f41f54a2cc936d23baeb4"
19+
sha256 cellar: :any_skip_relocation, arm64_linux: "c665af568cd43268f8a6172f1182854442e2dbb2abc6a82488c8da9905e2c1c6"
20+
sha256 cellar: :any_skip_relocation, x86_64_linux: "5b79dc67a685bb6834bee08caf8b1c68d9a06ab95802ef9df0592b48291f1fe6"
2021
end
2122

22-
head do
23-
url "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"
24-
25-
depends_on "autoconf" => :build
26-
depends_on "automake" => :build
27-
depends_on "libtool" => :build
28-
end
23+
depends_on "autoconf" => :build
24+
depends_on "automake" => :build
25+
depends_on "libtool" => :build
2926

3027
uses_from_macos "bison" => :build
3128
uses_from_macos "flex" => :build
3229

3330
def install
31+
odie "check if autoreconf line can be removed" if version > "45.2"
32+
# regenerate since the files were generated using automake 1.16
33+
system "autoreconf", "--install", "--force", "--verbose"
34+
3435
args = %w[
3536
--with-ngshared
3637
--enable-cider

Formula/n/ngspice.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
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
1011
regex(%r{url=.*?/ngspice[._-]v?(\d+(?:\.\d+)*)\.t}i)
1112
end
1213

1314
bottle do
14-
sha256 arm64_sequoia: "e1fbc716699bedd11ac0040cafb2d54fc7765d164f432f99e9a5b32751934330"
15-
sha256 arm64_sonoma: "696062f1262576c544cc2946d8297a467019e7fbc3209289ab380718ac83a9d0"
16-
sha256 arm64_ventura: "16f6bdf8892dbf381e4821c695b9cd3e29c102b167fec621f71009a31def195b"
17-
sha256 sonoma: "1f1d40b5cf95971d18d44d64de9422d493a7defc5eef7600daa2de3bd7af304a"
18-
sha256 ventura: "e918e90c17a14c699bbd5985d69fa1a56f916aacba200bc82fe298e52df45268"
19-
sha256 arm64_linux: "959ef6bd9de4cef70e5dd50111aa46864c7101832bd1e5db86a408f630af4d24"
20-
sha256 x86_64_linux: "b39aff234f3c3b2f7520ed58837b70778c619dba4a56b9d4f29c3157bb99f482"
21-
end
22-
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
15+
sha256 arm64_sequoia: "4f819c80ddd4483301f7e01871aeb3049f9e219e22d315052423bde23ccb242d"
16+
sha256 arm64_sonoma: "4226d7fb2762659a85353d5d6bebba7f9c3808a5ade8a0ea4fabe2dff6e8e6b3"
17+
sha256 arm64_ventura: "bb9832d330e7aa8d6e7642f2b7502af8aa6112b68ea4a2dd6fb0c97154c4492e"
18+
sha256 sonoma: "e589ca50ee6186e1ebe7d078df4cab987786504dce9f8e49f21686ffe775fe69"
19+
sha256 ventura: "525615c53f2f18720430f273b141d5f0da96a1180232f1838cd2e4418c51d1d0"
20+
sha256 arm64_linux: "943fc32abf2e74b11faa47f458a0c39c7789ca041bef2fe1ea5358b95afa67a6"
21+
sha256 x86_64_linux: "4825e30255d2c0fdb9d41e374ddf3984eb38f5eaae5e9e1a0439abd425c35eb7"
2922
end
3023

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)