summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-19 07:41:24 +0000
committerSam James <sam@gentoo.org>2021-10-19 07:43:57 +0000
commit2d9fdeba82351f19e7dafe9949c3a158de092054 (patch)
treee9084b2bd332f3033f4eee4a11e934825f5e3b9f /app-antivirus
parentapp-antivirus/clamav: remove man pages if USE=libclamav-only (diff)
downloadgentoo-2d9fdeba82351f19e7dafe9949c3a158de092054.tar.gz
gentoo-2d9fdeba82351f19e7dafe9949c3a158de092054.tar.bz2
gentoo-2d9fdeba82351f19e7dafe9949c3a158de092054.zip
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@gentoo.org>
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/clamav/clamav-0.104.0-r1.ebuild10
1 files 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 3fb0c27cd996..9b3bb334bb9b 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
}