1 |
commit: 2d9fdeba82351f19e7dafe9949c3a158de092054 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 19 07:41:24 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 19 07:43:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d9fdeba |
7 |
|
8 |
app-antivirus/clamav: use REQUIRED_USE for tests |
9 |
|
10 |
This makes it far more clear during e.g. arch testing |
11 |
if tests aren't going to be run, rather than silently |
12 |
continuing w/o them. |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
app-antivirus/clamav/clamav-0.104.0-r1.ebuild | 10 +++------- |
17 |
1 file changed, 3 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
20 |
index 3fb0c27cd99..9b3bb334bb9 100644 |
21 |
--- a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
22 |
+++ b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild |
23 |
@@ -16,8 +16,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~ |
24 |
IUSE="doc clamonacc +clamapp libclamav-only milter rar selinux systemd test uclibc" |
25 |
|
26 |
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter ) |
27 |
- clamonacc? ( clamapp ) |
28 |
- milter? ( clamapp )" |
29 |
+ clamonacc? ( clamapp ) |
30 |
+ milter? ( clamapp ) |
31 |
+ test? ( !libclamav-only )" |
32 |
|
33 |
RESTRICT="!test? ( test )" |
34 |
|
35 |
@@ -178,11 +179,6 @@ src_install() { |
36 |
} |
37 |
|
38 |
src_test() { |
39 |
- if use libclamav-only ; then |
40 |
- ewarn "Test target not available when USE=libclamav-only is set, skipping tests ..." |
41 |
- return 0 |
42 |
- fi |
43 |
- |
44 |
emake quick-check |
45 |
} |