|
1 | 1 | class Libngspice < Formula
|
2 | 2 | desc "Spice circuit simulator as shared library"
|
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 | formula "ngspice"
|
10 | 11 | end
|
11 | 12 |
|
12 | 13 | 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" |
20 | 21 | end
|
21 | 22 |
|
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 |
29 | 26 |
|
30 | 27 | uses_from_macos "bison" => :build
|
31 | 28 | uses_from_macos "flex" => :build
|
32 | 29 |
|
33 | 30 | 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 | + |
34 | 35 | args = %w[
|
35 | 36 | --with-ngshared
|
36 | 37 | --enable-cider
|
|
0 commit comments