Fix exec of scdaemon from gpg-agent

Fixes Homebrew/homebrew#21555.
This commit is contained in:
Jack Nagel 2013-07-30 19:20:54 -05:00
parent 55dd548f81
commit c1a0e4c37e
2 changed files with 5 additions and 4 deletions

View file

@ -34,11 +34,11 @@ class Gnupg2 < Formula
ENV['gl_cv_absolute_stdint_h'] = "#{MacOS.sdk_path}/usr/include/stdint.h"
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-symcryptrun",
"--disable-agent",
"--with-agent-pgm=#{HOMEBREW_PREFIX}/bin/gpg-agent"
"--with-agent-pgm=#{Formula.factory('gpg-agent').opt_prefix}/bin/gpg-agent"
system "make"
system "make check"
system "make install"

View file

@ -23,7 +23,8 @@ class GpgAgent < Formula
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-agent-only",
"--with-pinentry-pgm=#{HOMEBREW_PREFIX}/bin/pinentry"
"--with-pinentry-pgm=#{Formula.factory('pinentry').opt_prefix}/bin/pinentry",
"--with-scdaemon-pgm=#{Formula.factory('gnupg2').opt_prefix}/libexec/scdaemon"
system "make install"
end
end