gpg-agent: GnuPG 2.1.x migration tweaks

Closes #13169.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Dominyk Tiller 2017-05-02 18:39:48 +01:00 committed by ilovezfs
parent ced86035fa
commit 6288d7de09

View file

@ -1,13 +1,10 @@
# This formula tracks GnuPG stable. You can find GnuPG Modern via:
# brew install homebrew/versions/gnupg21
# At the moment GnuPG Modern causes too many incompatibilities to be in core.
class GpgAgent < Formula
desc "GPG key agent"
homepage "https://www.gnupg.org/"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.30.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.30.tar.bz2"
sha256 "e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71"
revision 2
revision 3
bottle do
sha256 "3b8ac273dd1592d0c10b4a114c58994988b1bdb2a2555698a7f28f169a245991" => :sierra
@ -15,7 +12,7 @@ class GpgAgent < Formula
sha256 "82508864a623ccbdbaded03dc50d487e3744742f3205040f5087289b5761c324" => :yosemite
end
keg_only "GPG 2.1.x ships an internal gpg-agent which it must use."
keg_only "GPG 2.1.x ships an internal gpg-agent which it must use"
depends_on "libgpg-error"
depends_on "libgcrypt"
@ -39,7 +36,7 @@ class GpgAgent < Formula
"--prefix=#{prefix}",
"--enable-agent-only",
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry",
"--with-scdaemon-pgm=#{Formula["gnupg2"].opt_libexec}/scdaemon"
"--with-scdaemon-pgm=#{Formula["gnupg@2.0"].opt_libexec}/scdaemon"
system "make", "install"
end