From a4a65db4616fd84270fbf758ff279bc89af5fcb9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 3 Mar 2012 17:52:58 -0600 Subject: gnupg2: specify path to gpg-agent We disable building the agent program and provide it as a separate gpg-agent package so that gnupg 1.x can use it as well. However, gpg2 still tries to find the agent in its own keg if it isn't already running; that is, if the user hasn't done something like eval $(gpg-agent --daemon) Using --with-agent-pgm, we can tell gpg2 to look in HOMEBREW_PREFIX/bin for the agent instead. Signed-off-by: Jack Nagel --- Library/Formula/gnupg2.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/gnupg2.rb b/Library/Formula/gnupg2.rb index 7d91d2105..ab0e22aae 100644 --- a/Library/Formula/gnupg2.rb +++ b/Library/Formula/gnupg2.rb @@ -1,8 +1,8 @@ require 'formula' class Gnupg2 < Formula - url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.18.tar.bz2' homepage 'http://www.gnupg.org/' + url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.18.tar.bz2' sha1 '5ec2f718760cc3121970a140aeea004b64545c46' depends_on 'libgpg-error' @@ -28,7 +28,8 @@ class Gnupg2 < Formula system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--enable-symcryptrun", - "--disable-agent" + "--disable-agent", + "--with-agent-pgm=#{HOMEBREW_PREFIX}/bin/gpg-agent" system "make" system "make check" system "make install" -- cgit v1.2.3