Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions Formula/lib/libngspice.rb
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
class Libngspice < Formula
desc "Spice circuit simulator as shared library"
homepage "https://ngspice.sourceforge.io/"
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45/ngspice-45.tar.gz"
sha256 "f1aad8abac2828a7b71da66411de8e406524e75f3066e46755439c490442d734"
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45.2/ngspice-45.2.tar.gz"
sha256 "ba8345f4c3774714c10f33d7da850d361cec7d14b3a295d0dc9fd96f7423812d"
license :cannot_represent
head "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"

livecheck do
formula "ngspice"
end

bottle do
sha256 cellar: :any, arm64_sequoia: "8640f2c59198f340d8a500c68c42fa2c9a4a52d2a01fdf4ed2f5029e21348295"
sha256 cellar: :any, arm64_sonoma: "30852e6c8a36510ea1d2dd62125e67b04643b7f77632f082da72c92f56233813"
sha256 cellar: :any, arm64_ventura: "ed7ed1371490ca0220161cae6ecf9bcc572a6f1f33657a39d206a110b1e115d6"
sha256 cellar: :any, sonoma: "9841e745b6b916b089c4816d1073a23e9ba52258d7a9b6ed79a2812dbc7bcf13"
sha256 cellar: :any, ventura: "abd210c4683adc038574cc03e8c37859af1bc678ae5291614a7a99f7346ce78b"
sha256 cellar: :any_skip_relocation, arm64_linux: "a6559b9a44837e4319d77d3489072e6c3ffa085a44bda2764089ab0ddbf1989a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9b380afa18369e0f571e37ff8812ba0946483d145de2f2db08a0f1d996885a52"
sha256 cellar: :any, arm64_sequoia: "e0a459c7db04f315322f670d4a3303061b5ec63c0cc633aa8fe00f14b0b27eea"
sha256 cellar: :any, arm64_sonoma: "7b6aab8c0313bb29e1b5343e344f018c3732df5dd16f6ab3b385a60c5301b337"
sha256 cellar: :any, arm64_ventura: "496ac4b64b5ff3c83663d21ae324946e75040a8633f8dc863ee9335adc4502d6"
sha256 cellar: :any, sonoma: "a3e8c9a2ea5325ff2fb4ef589cce8626f9acfde4a7ed4a74d8d837a80206c3ab"
sha256 cellar: :any, ventura: "51dc5e48e6dfe8c49c1d88fcbf96d6161f6505d7389f41f54a2cc936d23baeb4"
sha256 cellar: :any_skip_relocation, arm64_linux: "c665af568cd43268f8a6172f1182854442e2dbb2abc6a82488c8da9905e2c1c6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5b79dc67a685bb6834bee08caf8b1c68d9a06ab95802ef9df0592b48291f1fe6"
end

head do
url "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build

uses_from_macos "bison" => :build
uses_from_macos "flex" => :build

def install
odie "check if autoreconf line can be removed" if version > "45.2"
# regenerate since the files were generated using automake 1.16
system "autoreconf", "--install", "--force", "--verbose"

args = %w[
--with-ngshared
--enable-cider
Expand Down
34 changes: 17 additions & 17 deletions Formula/n/ngspice.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
class Ngspice < Formula
desc "Spice circuit simulator"
homepage "https://ngspice.sourceforge.io/"
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45/ngspice-45.tar.gz"
sha256 "f1aad8abac2828a7b71da66411de8e406524e75f3066e46755439c490442d734"
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/45.2/ngspice-45.2.tar.gz"
sha256 "ba8345f4c3774714c10f33d7da850d361cec7d14b3a295d0dc9fd96f7423812d"
license :cannot_represent
head "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"

livecheck do
url :stable
regex(%r{url=.*?/ngspice[._-]v?(\d+(?:\.\d+)*)\.t}i)
end

bottle do
sha256 arm64_sequoia: "e1fbc716699bedd11ac0040cafb2d54fc7765d164f432f99e9a5b32751934330"
sha256 arm64_sonoma: "696062f1262576c544cc2946d8297a467019e7fbc3209289ab380718ac83a9d0"
sha256 arm64_ventura: "16f6bdf8892dbf381e4821c695b9cd3e29c102b167fec621f71009a31def195b"
sha256 sonoma: "1f1d40b5cf95971d18d44d64de9422d493a7defc5eef7600daa2de3bd7af304a"
sha256 ventura: "e918e90c17a14c699bbd5985d69fa1a56f916aacba200bc82fe298e52df45268"
sha256 arm64_linux: "959ef6bd9de4cef70e5dd50111aa46864c7101832bd1e5db86a408f630af4d24"
sha256 x86_64_linux: "b39aff234f3c3b2f7520ed58837b70778c619dba4a56b9d4f29c3157bb99f482"
end

head do
url "https://git.code.sf.net/p/ngspice/ngspice.git", branch: "master"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
sha256 arm64_sequoia: "4f819c80ddd4483301f7e01871aeb3049f9e219e22d315052423bde23ccb242d"
sha256 arm64_sonoma: "4226d7fb2762659a85353d5d6bebba7f9c3808a5ade8a0ea4fabe2dff6e8e6b3"
sha256 arm64_ventura: "bb9832d330e7aa8d6e7642f2b7502af8aa6112b68ea4a2dd6fb0c97154c4492e"
sha256 sonoma: "e589ca50ee6186e1ebe7d078df4cab987786504dce9f8e49f21686ffe775fe69"
sha256 ventura: "525615c53f2f18720430f273b141d5f0da96a1180232f1838cd2e4418c51d1d0"
sha256 arm64_linux: "943fc32abf2e74b11faa47f458a0c39c7789ca041bef2fe1ea5358b95afa67a6"
sha256 x86_64_linux: "4825e30255d2c0fdb9d41e374ddf3984eb38f5eaae5e9e1a0439abd425c35eb7"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "fftw"
depends_on "freetype"
depends_on "libngspice"
Expand All @@ -47,6 +43,10 @@ class Ngspice < Formula
end

def install
odie "check if autoreconf line can be removed" if version > "45.2"
# regenerate since the files were generated using automake 1.16
system "autoreconf", "--install", "--force", "--verbose"

# Xft #includes <ft2build.h>, not <freetype2/ft2build.h>, hence freetype2
# must be put into the search path.
ENV.append "CFLAGS", "-I#{Formula["freetype"].opt_include}/freetype2"
Expand Down
Loading