net-analyzer/nfdump: fix USE=doc

Do not install docs unless USE=doc.

Closes: https://bugs.gentoo.org/954794
Fixes: a15fceea3c
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/592
Merges: https://codeberg.org/gentoo/gentoo/pulls/592
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Brett A C Sheffield
2026-04-11 07:57:43 +00:00
committed by Sam James
parent 9d4173ea03
commit b6be68eb7d

View File

@@ -33,7 +33,7 @@ BDEPEND="
app-alternatives/yacc
sys-devel/flex
doc? (
app-text/doxygen[dot]
app-text/doxygen
media-gfx/graphviz
)
"
@@ -52,6 +52,11 @@ DOCS=( AUTHORS ChangeLog README.md )
src_prepare() {
default
if ! use doc; then
# don't install docs if we didn't ask
sed -i -e 's/SUBDIRS += man doc/SUBDIRS += man/' Makefile.am || die
fi
eautoreconf
if use doc; then