aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnupg2.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/gnupg2.rb b/Library/Formula/gnupg2.rb
index 894032b31..ce3f09c6c 100644
--- a/Library/Formula/gnupg2.rb
+++ b/Library/Formula/gnupg2.rb
@@ -35,13 +35,16 @@ class Gnupg2 < Formula
ENV['gl_cv_absolute_stdint_h'] = "#{MacOS.sdk_path}/usr/include/stdint.h"
+ agent = Formula.factory("gpg-agent").opt_prefix
+
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--sbindir=#{bin}
--enable-symcryptrun
--disable-agent
- --with-agent-pgm=#{Formula.factory('gpg-agent').opt_prefix}/bin/gpg-agent
+ --with-agent-pgm=#{agent}/bin/gpg-agent
+ --with-protect-tool-pgm=#{agent}/libexec/gpg-protect-tool
]
if build.with? 'readline'