security/gnupg: don't install man pages when DOCS is off
This isn't the right approach. Manpages aren't docs like FAQ and HACKING and DETAILS; they're manpages and their existence shouldn't be controlled by the DOCS option.
There are a couple options we could do:
- Only touch *.texi and patch the texi sources if DOCS is enabled
- Add a MANPAGES option
- Continue touching *.texi and patching the texi sources regardless, but delete the makeinfo line from docs/Makefile.am if DOCS is off
- Everybody gets texinfo
It sounds like the right option then is to add a MANPAGES option. However, the --disable-docs configure option disables both man pages _and_ the help*.txt files. So as long as either MANPAGES or DOCS is on, we'll need to do makeinfo. Or, everybody gets man pages, and everybody needs to run makeinfo. Which would you prefer?
Normally I push hard against avoidable dependencies, but I think the right thing to do here is to make makeinfo non-optional. Major gnupg dependencies (like gnutls, libgcrypt, m4, nettle, and autoconf) depend on texinfo, so there's really nothing to gain from hiding it behind a MANPAGES option (which is normally used when dependencies are ludicrous, like pandoc or whatever nonsense python thing cmake uses).
So, my vote is for makeinfo always been used.
BTW, the depends line needs to be changed. I don't want to mess up your patches, so can you please add to your patch:
BUILD_DEPENDS= makeinfo:print/texinfo --> USES= makeinfo
Ah sorry, forgot to reply here. Someone reported an error that seemed like it was caused by this, so I pushed the fix. Turns out he had some sort of environment contamination (building from ports), so it was a bad assumption on my part.