homebrew-core/Formula/libassuan.rb

49 lines
2.4 KiB
Ruby

class Libassuan < Formula
desc "Assuan IPC Library"
homepage "https://www.gnupg.org/related_software/libassuan/"
url "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libassuan/libassuan-2.5.5.tar.bz2"
sha256 "8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4"
license "GPL-3.0-only"
livecheck do
url "https://gnupg.org/ftp/gcrypt/libassuan/"
regex(/href=.*?libassuan[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_ventura: "1b7a27083bdcc1b645c9533ca828fcfda39bcf50c25b0e7f2b2835984a19b03b"
sha256 cellar: :any, arm64_monterey: "27d666e26e2017829f33e9b367286dededcaea0b818135cd606c45efd5d5821c"
sha256 cellar: :any, arm64_big_sur: "3120a9c83de1631e86002b899ce823abccfd8bcaf90a6f54cbc7cd9ae1fd1fa4"
sha256 cellar: :any, ventura: "b435b3335a7fc8dd25192799515750686a9d3b18b68eeb27c5313c4b5e6afb78"
sha256 cellar: :any, monterey: "6c833fe28fa90c3ded1c1012b9ba631732374f6a95e2700097906103de27fa6d"
sha256 cellar: :any, big_sur: "3d14f187ed48aa40987fa5fdf3ed9cbc52ddf8d079c7e97553efe510e4a084a0"
sha256 cellar: :any, catalina: "75a37cd9a2f103b1f552349ba537cec0bd2ecbb222583b35e237aa6ad90b84c5"
sha256 cellar: :any, mojave: "81119eac40ec7e6cfd997631f8d5ed1b6a3646c0b3481acd1c6b98492a187d25"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d754984c6d78eba446c4a1cf44ddb81ac492df990e61977aedfa195af814c671"
end
depends_on "libgpg-error"
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-static"
system "make", "install"
# avoid triggering mandatory rebuilds of software that hard-codes this path
inreplace bin/"libassuan-config", prefix, opt_prefix
end
test do
system bin/"libassuan-config", "--version"
end
end