gentoo-overlay/dev-perl/File-Scan-ClamAV/File-Scan-ClamAV-1.950.0.ebuild

39 lines
937 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: a4a4441edf5e23a924ac9f349ce7ea36d7058a44 $
EAPI=6
DIST_AUTHOR=ESAYM
DIST_VERSION=1.95
inherit perl-module
DESCRIPTION="Connect to a local Clam Anti-Virus clamd service and send commands"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE=""
RDEPEND="app-antivirus/clamav"
DEPEND="${DEPEND}
virtual/perl-ExtUtils-MakeMaker
"
# Test's can't be run in parallel because they internally spawn a
# clam server on the same shared socket
DIST_TEST="do"
src_test() {
if [[ "${TEST_SCAN_CLAMAV:-0}" == "1" || -n "${DIST_TEST_OVERRIDE}" ]]; then
perl_rm_files t/pod-coverage.t t/pod.t
perl-module_src_test
else
einfo "Skipping Tests."
einfo
einfo "Tests require a manually and correctly configured ClamAV."
einfo
einfo "Set TEST_SCAN_CLAMAV=1 if you wish to run this test and have"
einfo "configured ClamAV"
fi
}