Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pinentry-mac: backport support for newer libassuan #191462

Merged
merged 2 commits into from
Jan 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions Formula/p/pinentry-mac.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
Loading