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