From b6be68eb7d4bf94ca6eff315e2da7ad15f8186c4 Mon Sep 17 00:00:00 2001 From: Brett A C Sheffield Date: Sat, 11 Apr 2026 07:57:43 +0000 Subject: [PATCH] net-analyzer/nfdump: fix USE=doc Do not install docs unless USE=doc. Closes: https://bugs.gentoo.org/954794 Fixes: a15fceea3cab9977925d2ad5aa542660e92ac567 Signed-off-by: Brett A C Sheffield Part-of: https://codeberg.org/gentoo/gentoo/pulls/592 Merges: https://codeberg.org/gentoo/gentoo/pulls/592 Signed-off-by: Sam James --- .../nfdump/{nfdump-1.7.7.ebuild => nfdump-1.7.7-r1.ebuild} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename net-analyzer/nfdump/{nfdump-1.7.7.ebuild => nfdump-1.7.7-r1.ebuild} (93%) diff --git a/net-analyzer/nfdump/nfdump-1.7.7.ebuild b/net-analyzer/nfdump/nfdump-1.7.7-r1.ebuild similarity index 93% rename from net-analyzer/nfdump/nfdump-1.7.7.ebuild rename to net-analyzer/nfdump/nfdump-1.7.7-r1.ebuild index 73fc169e3e4be..6c5920b297f61 100644 --- a/net-analyzer/nfdump/nfdump-1.7.7.ebuild +++ b/net-analyzer/nfdump/nfdump-1.7.7-r1.ebuild @@ -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