From ae9ee66898c20aea02c060e68895e37a3b0a724c Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 21 Sep 2024 13:12:43 -0400 Subject: [PATCH 1/2] pinentry-mac: backport support for newer `libassuan` --- Formula/p/pinentry-mac.rb | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/Formula/p/pinentry-mac.rb b/Formula/p/pinentry-mac.rb index 641fec504bceb..6b088a606b1c6 100644 --- a/Formula/p/pinentry-mac.rb +++ b/Formula/p/pinentry-mac.rb @@ -1,12 +1,25 @@ class PinentryMac < Formula desc "Pinentry for GPG on Mac" homepage "https://github.com/GPGTools/pinentry" - url "https://github.com/GPGTools/pinentry/archive/refs/tags/v1.1.1.1.tar.gz" - sha256 "1a414f2e172cf8c18a121e60813413f27aedde891c5955151fbf8d50c46a9098" license all_of: ["GPL-2.0-or-later", "GPL-3.0-or-later"] revision 1 head "https://github.com/GPGTools/pinentry.git", branch: "master" + stable do + url "https://github.com/GPGTools/pinentry/archive/refs/tags/v1.1.1.1.tar.gz" + sha256 "1a414f2e172cf8c18a121e60813413f27aedde891c5955151fbf8d50c46a9098" + + # Backport support for newer `libassuan` + patch do + url "https://github.com/GPGTools/pinentry/commit/d8ca98aec634256cf4f6801874b6730eda12c5c5.patch?full_index=1" + sha256 "1490963f2a0ce75879123e56f94064e1b3263ef8aad222c3ca1966807c67ff7e" + end + patch do + url "https://github.com/GPGTools/pinentry/commit/a39ba412ab24721d4edb6476156371f8bf1d3ff9.patch?full_index=1" + sha256 "277d20f59bd37b3d41e547561b048f6a2af97f96157f1d4adc785bb57f387b5d" + end + end + bottle do sha256 cellar: :any, arm64_sequoia: "1759d4b87b044210921e272a7b17088619a0926cc0cf2e6575ce41a67e23dd76" sha256 cellar: :any, arm64_sonoma: "d9b12bddf25fdd63200405e9d47e97b0f26f1a7072008f4a162a4904057ea793" @@ -20,22 +33,21 @@ class PinentryMac < Formula depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build - depends_on xcode: :build - depends_on "gettext" - depends_on "libassuan@2" + depends_on xcode: :build # for ibtool + depends_on "libassuan" + depends_on "libgpg-error" depends_on :macos - on_ventura :or_newer do - depends_on "texinfo" => :build - end - def install - system "autoreconf", "--force", "--install", "--verbose" - system "autoconf" - system "./configure", "--disable-ncurses", "--enable-maintainer-mode" + system "./autogen.sh" + system "./configure", "--disable-doc", + "--disable-ncurses", + "--disable-silent-rules", + "--enable-maintainer-mode", + *std_configure_args system "make" prefix.install "macosx/pinentry-mac.app" - bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac" + bin.write_exec_script prefix/"pinentry-mac.app/Contents/MacOS/pinentry-mac" end def caveats From 518cb3825bf76541c407c07e85af962464e11f50 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 11 Jan 2025 04:48:26 +0000 Subject: [PATCH 2/2] pinentry-mac: update 1.1.1.1_1 bottle. --- Formula/p/pinentry-mac.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Formula/p/pinentry-mac.rb b/Formula/p/pinentry-mac.rb index 6b088a606b1c6..6819da1374485 100644 --- a/Formula/p/pinentry-mac.rb +++ b/Formula/p/pinentry-mac.rb @@ -21,13 +21,12 @@ class PinentryMac < Formula end bottle do - sha256 cellar: :any, arm64_sequoia: "1759d4b87b044210921e272a7b17088619a0926cc0cf2e6575ce41a67e23dd76" - sha256 cellar: :any, arm64_sonoma: "d9b12bddf25fdd63200405e9d47e97b0f26f1a7072008f4a162a4904057ea793" - sha256 cellar: :any, arm64_ventura: "16372bcfc0e902ab575e8e1cd8413c6e2079cec95b0b932713351f1e412fc23c" - sha256 cellar: :any, arm64_monterey: "b8cc948168aee564dee88bc7cd7d6ab027890a9f4535d2d5e097bbd7a4de9c33" - sha256 cellar: :any, sonoma: "7274251e5bccbbb1bd94323d42a345e35eb5a963ee22f88d234d5624a1ec5dab" - sha256 cellar: :any, ventura: "75d4f6ca57c0ee9b2f5bcb1160476dbe120d9208b234eb3e7e9cc39da11ef2d0" - sha256 cellar: :any, monterey: "99e48f5cb775d70647132279317d6f3d1999f97df4db76e8631ddc76c88b79fe" + rebuild 1 + sha256 cellar: :any, arm64_sequoia: "bc6676111bdf951f0cf02cb73dc697ddb248b202ae355dafd95db76f0d613523" + sha256 cellar: :any, arm64_sonoma: "14210a275cd79e331a9f3e743e2b1ab438599aa9606dff0c4f92ea3729ea1bed" + sha256 cellar: :any, arm64_ventura: "88e9c185744b022538687f5457cf983cd008f3c7e0c88d3de6c88999ab434e4c" + sha256 cellar: :any, sonoma: "9d83f7520b7714a41dbba0ca5bb70c04865537a672ab026e91c534b259cd8287" + sha256 cellar: :any, ventura: "06b27d956af99787f8f4a4eae11517b9d7ace95d5cebbbbe0db0904660598064" end depends_on "autoconf" => :build