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 <jacknagel@gmail.com>
gnupg2 is designed coexist with gnupg 1.x. The formula contains a patch
to keep things like documentation and language data from conflicting
with gnupg 1.x by namespacing everything as 'gnupg2'.
gpg-agent is currently an external package in Homebrew, as it can also
be used with gnupg 1.x; so in the formula we disable building the agent
and declare a dependency on it instead.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>