Skip to content

Commit

Permalink
libsmi: regenerate configure
Browse files Browse the repository at this point in the history
We need this to get rid of the bad `-flat_namespace` flag. None of our
usual patches apply.

This is needed for bottling on Monterey. See Homebrew#94212.

Also, update the `license`. Taken from Debian's copyright file.
  • Loading branch information
carlocab committed Feb 1, 2022
1 parent da134c3 commit 611404a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Formula/libsmi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Libsmi < Formula
url "https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-0.5.0.tar.gz"
mirror "https://www.mirrorservice.org/sites/distfiles.macports.org/libsmi/libsmi-0.5.0.tar.gz"
sha256 "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3"
license all_of: ["TCL", "BSD-3-Clause", "Beerware"]

livecheck do
url "https://www.ibr.cs.tu-bs.de/projects/libsmi/download/"
Expand All @@ -20,7 +21,14 @@ class Libsmi < Formula
sha256 x86_64_linux: "7c1d475b1062dec302c4022771cbed447f00923a404a1ea131b79796f44d07f5"
end

# Regenerate `configure` to avoid `-flat_namespace` bug.
# None of our usual patches apply.
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build

def install
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
Expand Down

0 comments on commit 611404a

Please sign in to comment.