1 |
commit: d728b9ed05a9d047aafa61253780355f05d3ac8c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 19 07:39:34 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 19 07:43:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d728b9ed |
7 |
|
8 |
app-antivirus/clamav: remove man pages if USE=libclamav-only |
9 |
|
10 |
Man pages are now always installed, but let's remove them |
11 |
if they're irrelevant (USE=libclamav-only). No man pages |
12 |
exist for libclamav, and we don't want man pages for |
13 |
the utiltiies to be installed if the tools themselves |
14 |
aren't selected. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/818892 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
app-antivirus/clamav/clamav-0.104.0-r1.ebuild | 7 ++++--- |
20 |
1 file changed, 4 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
23 |
index 138b4e8373b..3fb0c27cd99 100644 |
24 |
--- a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
25 |
+++ b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
26 |
@@ -167,10 +167,11 @@ src_install() { |
27 |
if use doc ; then |
28 |
local HTML_DOCS=( docs/html/. ) |
29 |
einstalldocs |
30 |
+ fi |
31 |
|
32 |
- if ! use libclamav-only ; then |
33 |
- doman docs/man/*.[1-8] |
34 |
- fi |
35 |
+ # Don't install man pages for utilities we didn't install |
36 |
+ if use libclamav-only ; then |
37 |
+ rm -r "${ED}"/usr/share/man || die |
38 |
fi |
39 |
|
40 |
find "${ED}" -name '*.la' -delete || die |