Skip to content

Commit

Permalink
Merge pull request #191462 from Homebrew/pinentry-mac-libassuan
Browse files Browse the repository at this point in the history
pinentry-mac: backport support for newer `libassuan`
  • Loading branch information
BrewTestBot authored Jan 11, 2025
2 parents 2353dc2 + 518cb38 commit 2fe66d9
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions Formula/p/pinentry-mac.rb
Original file line number Diff line number Diff line change
@@ -1,41 +1,52 @@
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"
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
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
Expand Down

0 comments on commit 2fe66d9

Please sign in to comment.