Skip to content

Commit

Permalink
Merge pull request Homebrew#203221 from Homebrew/libngspice-ngspice-r…
Browse files Browse the repository at this point in the history
…ebuild

libngspice,ngspice: rebuild (libngspice ngspice 44)
  • Loading branch information
BrewTestBot authored Jan 5, 2025
2 parents 185cd18 + d722ce7 commit 28c6264
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
29 changes: 15 additions & 14 deletions Formula/lib/libngspice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@ 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/44/ngspice-44.tar.gz"
sha256 "8fef0e80b324df1f6ac6c73a9ed9a4120a9a17b62c13e83e1f674a9d9e6a4142"
sha256 "3865d13ab44f1f01f68c7ac0e0716984e45dce5a86d126603c26d8df30161e9b"
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: "162528e8b920abfc6a8a3d3192cf18d29e638d369950a4b2b3dda055edff13e5"
sha256 cellar: :any, arm64_sonoma: "4f722ecb18f76649425033f0d34b67d5a7887c2bb0def3550043c810a7fd4774"
sha256 cellar: :any, arm64_ventura: "af49126c2318f5f85e86eadd45bc13e8e21d389604592c138e3a2936823183ef"
sha256 cellar: :any, sonoma: "5009ea314d109cb54449c4561661de49ef2fa9f170f50a2a4ba51d34db5445e5"
sha256 cellar: :any, ventura: "dd2623ded67bc39adfb2375697f2b526f20428e0a57ad252ae94267d1a11d2e5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "218acdeadf683ee2a6bb96cf7899b974facfedf90ba7e02db9e5750377423647"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "5ca4aafb0d8d00dbec59105f6e9394ad41cac1d336bfa99d6df6f498e092b46d"
sha256 cellar: :any, arm64_sonoma: "1dbae25eadece6a55ef3587f036e57637b5445584e01c7f81207d561a0c61157"
sha256 cellar: :any, arm64_ventura: "976c56210d4d2b8c696a6459655aca268c76c95046823c56b918ac8f2d67e752"
sha256 cellar: :any, sonoma: "84ce8f9c8baad54f2fd1fde08a05377ee63105197676e81a3806fccfa4a3a483"
sha256 cellar: :any, ventura: "a9d65308d6198d261cc580c5fccef2e3db31e1809f2b244c9e9ab71b6761f787"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5130aeefd3dfecc8dc59bda538e1b11da9c6b6540b225fa5d3ee00fc71db7b09"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
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

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

def install
# upstream bug report on the `configure` script, https://sourceforge.net/p/ngspice/bugs/731/
system "./autogen.sh"

args = %w[
--with-ngshared
--enable-cider
Expand Down
29 changes: 15 additions & 14 deletions Formula/n/ngspice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@ class Ngspice < Formula
desc "Spice circuit simulator"
homepage "https://ngspice.sourceforge.io/"
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/44/ngspice-44.tar.gz"
sha256 "8fef0e80b324df1f6ac6c73a9ed9a4120a9a17b62c13e83e1f674a9d9e6a4142"
sha256 "3865d13ab44f1f01f68c7ac0e0716984e45dce5a86d126603c26d8df30161e9b"
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: "3137db5e486825253c5189af8a360ccba86b51a1f43bcb4bd20903d0558d52d9"
sha256 arm64_sonoma: "bfaa71b5943132e959147136b50c81295aa949d4be3e6e455b15680ee6f380ba"
sha256 arm64_ventura: "ae6abd74200c1b1efa83d64c0d2908b30b3cf90836b8f40367c7fdb4b457d9c8"
sha256 sonoma: "3957caa308e93b869cdbdff5d68b88356a1bc5da4e97dce03901037e9b9005c9"
sha256 ventura: "ca0b4853b3efd4df944b12fcd24b5254786e6312fc589c5b0cea0944f58817c8"
sha256 x86_64_linux: "7a233aef2813b9f45d2d1234f7292c35073299762f6b11f0e047f64fae8fba71"
rebuild 1
sha256 arm64_sequoia: "4065a95b82cd0068743ab9c2ddfeeaa0fcbb17f6fe80bd8e06a69ed63959243d"
sha256 arm64_sonoma: "16cd3c95576f9a01a8d959a9ebf739fd2ba66d19d64fd573b135f1e58bbb57ae"
sha256 arm64_ventura: "0a95925e6f1851e96d36e5a3011f65b724f11dec96ebf852c84a5253bf980bee"
sha256 sonoma: "a092da5427590a00c6037df644c7624c69d93894dafd78d6b1e918ddd802011a"
sha256 ventura: "5231f6839262cfa786e058ec34df2c008971abbbeb5c9298fd762f764f780369"
sha256 x86_64_linux: "08f6e7e51b425b129347542106eb86d3024f3492eb0bbdc87ad3edf77e9757d4"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
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 "fftw"
depends_on "freetype"
Expand All @@ -43,9 +47,6 @@ class Ngspice < Formula
end

def install
# upstream bug report on the `configure` script, https://sourceforge.net/p/ngspice/bugs/731/
system "./autogen.sh"

# 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

0 comments on commit 28c6264

Please sign in to comment.