summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-19 07:39:34 +0000
committerSam James <sam@gentoo.org>2021-10-19 07:43:56 +0000
commitd728b9ed05a9d047aafa61253780355f05d3ac8c (patch)
tree1b74d24a1c15f3340ec76eb45658e67d65bf7def /app-antivirus
parentapp-antivirus/clamav: generate docs w/ doxygen with USE=doc (diff)
downloadgentoo-d728b9ed05a9d047aafa61253780355f05d3ac8c.tar.gz
gentoo-d728b9ed05a9d047aafa61253780355f05d3ac8c.tar.bz2
gentoo-d728b9ed05a9d047aafa61253780355f05d3ac8c.zip
app-antivirus/clamav: remove man pages if USE=libclamav-only
Man pages are now always installed, but let's remove them if they're irrelevant (USE=libclamav-only). No man pages exist for libclamav, and we don't want man pages for the utiltiies to be installed if the tools themselves aren't selected. Closes: https://bugs.gentoo.org/818892 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/clamav/clamav-0.104.0-r1.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
index 138b4e8373b1..3fb0c27cd996 100644
--- a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
+++ b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
@@ -167,10 +167,11 @@ src_install() {
if use doc ; then
local HTML_DOCS=( docs/html/. )
einstalldocs
+ fi
- if ! use libclamav-only ; then
- doman docs/man/*.[1-8]
- fi
+ # Don't install man pages for utilities we didn't install
+ if use libclamav-only ; then
+ rm -r "${ED}"/usr/share/man || die
fi
find "${ED}" -name '*.la' -delete || die