Skip to content

Commit

Permalink
gnupg 2.4.0
Browse files Browse the repository at this point in the history
Closes #120045.

Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
cho-m authored and BrewTestBot committed Jan 8, 2023
1 parent decd67c commit 3655dec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
File renamed without changes.
41 changes: 18 additions & 23 deletions Formula/gnupg.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Gnupg < Formula
desc "GNU Pretty Good Privacy (PGP) package"
homepage "https://gnupg.org/"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.3.8.tar.bz2"
sha256 "540b7a40e57da261fb10ef521a282e0021532a80fd023e75fb71757e8a4969ed"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.4.0.tar.bz2"
sha256 "1d79158dd01d992431dd2e3facb89fdac97127f89784ea2cb610c600fb0c1483"
license "GPL-3.0-or-later"

livecheck do
Expand All @@ -22,7 +22,6 @@ class Gnupg < Formula
end

depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gnutls"
depends_on "libassuan"
depends_on "libgcrypt"
Expand All @@ -31,35 +30,31 @@ class Gnupg < Formula
depends_on "libusb"
depends_on "npth"
depends_on "pinentry"
depends_on "readline"

uses_from_macos "bzip2"
uses_from_macos "sqlite", since: :catalina
uses_from_macos "zlib"

on_linux do
depends_on "libidn"
end

# Fixes a build failure without ldap.
# Committed upstream, will be in the next release.
# https://dev.gnupg.org/T6239
patch do
url "https://dev.gnupg.org/rG7011286ce6e1fb56c2989fdafbd11b931c489faa?diff=1"
sha256 "407011d4ae9799f50008b431df60cd5b781dca0f572e956fd46245aa209af7e8"
on_macos do
depends_on "gettext"
end

def install
libusb = Formula["libusb"]
ENV.append "CPPFLAGS", "-I#{libusb.opt_include}/libusb-#{libusb.version.major_minor}"

system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sbindir=#{bin}",
"--sysconfdir=#{etc}",
"--enable-all-tests",
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry"
system "make"
system "make", "check"
system "make", "install"
mkdir "build" do
system "../configure", *std_configure_args,
"--disable-silent-rules",
"--sbindir=#{bin}",
"--sysconfdir=#{etc}",
"--enable-all-tests",
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry"
system "make"
system "make", "check"
system "make", "install"
end

# Configure scdaemon as recommended by upstream developers
# https://dev.gnupg.org/T5415#145864
Expand Down

0 comments on commit 3655dec

Please sign in to comment.