commit: d728b9ed05a9d047aafa61253780355f05d3ac8c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Oct 19 07:39:34 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Oct 19 07:43:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d728b9ed
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 <AT> gentoo.org> app-antivirus/clamav/clamav-0.104.0-r1.ebuild | 7 ++++--- 1 file 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 138b4e8373b..3fb0c27cd99 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
