Skip to content
Closed
Changes from all commits
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
29 changes: 15 additions & 14 deletions Formula/pinentry-mac.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class PinentryMac < Formula
desc "Pinentry for GPG on Mac"
homepage "https://github.com/GPGTools/pinentry-mac"
url "https://github.com/GPGTools/pinentry-mac/archive/v0.9.4.tar.gz"
sha256 "037ebb010377d3a3879ae2a832cefc4513f5c397d7d887d7b86b4e5d9a628271"
license "GPL-2.0"
head "https://github.com/GPGTools/pinentry-mac.git"
homepage "https://github.com/GPGTools/pinentry"
url "https://github.com/GPGTools/pinentry/archive/v1.1.0.3.tar.gz"
sha256 "1ac83f1688d02518da5ddce1ceaa7e40893080a8d2f015b759dfaddf1b14545c"
license all_of: ["GPL-2.0-or-later", "GPL-3.0-or-later"]
head "https://github.com/GPGTools/pinentry.git", branch: "dev"

bottle do
cellar :any_skip_relocation
Expand All @@ -19,18 +19,19 @@ class PinentryMac < Formula
sha256 "c2538b57edce2eb7ccc10a32e16ccfbbbe8e61c384c4db8d5a62b04d3815c0ed" => :mavericks
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on xcode: :build

patch do
# patch header locations for macOS 10.14
# https://github.com/GPGTools/pinentry-mac/pull/7
url "https://github.com/GPGTools/pinentry-mac/commit/62fe9f9a3d21891e87883af2e0e3815155926b20.patch?full_index=1"
sha256 "d4bcf2003fa1345ecb1809461140179a3737e8e03eb49d623435beb3c2f09b64"
end
depends_on "gettext"
depends_on "libassuan"

def install
system "autoreconf", "-fiv"
system "autoconf"
system "./configure", "--disable-ncurses", "--enable-maintainer-mode"
system "make"
prefix.install "build/Release/pinentry-mac.app"
prefix.install "macosx/pinentry-mac.app"
bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac"
end

Expand All @@ -44,6 +45,6 @@ def caveats
end

test do
assert_match version.to_s, shell_output("#{bin}/pinentry-mac --version")
assert_match version.major_minor_patch.to_s, shell_output("#{bin}/pinentry-mac --version")
end
end