class LibgpgError < Formula bottle do root_url "https://homebrew.hyprnet/bottles" sha256 cellar: "/opt/homebrew/Cellar", arm64_sequoia: "d209486b1890cf8194a71c00d976bdb4708ff82336232e4b7b38c64f7686de6d" sha256 cellar: "/opt/homebrew/Cellar", arm64_tahoe: "74ecfae7911e36e85f9400931acab43770544c7826a3e7a8176c6410dfc10735" sha256 cellar: "/home/linuxbrew/.linuxbrew/Cellar", x86_64_linux: "17c06341c6fc696e36e41d204129ea1e30e90951807194694d146bd16263af6b" end desc "Common error values for all GnuPG components" homepage "https://www.gnupg.org/related_software/libgpg-error/" url "https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.61.tar.bz2" sha256 "7a85413f2bc354f4f8aa832b718af122e48965e9e0eb9012ee659c13c6385c93" license "LGPL-2.1-or-later" compatibility_version 1 livecheck do url "https://gnupg.org/ftp/gcrypt/libgpg-error/" regex(/href=.*?libgpg-error[._-]v?(\d+(?:\.\d+)+)\.t/i) end on_macos do depends_on "gettext" end def install # NOTE: gpg-error-config is deprecated upstream, so we should remove this at some point. # https://dev.gnupg.org/T5683 system "./configure", *std_configure_args, "--disable-silent-rules", "--enable-install-gpg-error-config", "--enable-static" system "make", "install" # avoid triggering mandatory rebuilds of software that hard-codes this path inreplace [bin/"gpg-error-config", lib/"pkgconfig/gpg-error.pc"], prefix, opt_prefix end test do system bin/"gpgrt-config", "--libs" end end