spack/var/spack/repos/builtin/packages/clamav/package.py
Michael Kuhn 5669144d22 Fix pkgconfig dependencies (#11864)
pkgconfig is the correct virtual dependency.
2019-06-27 14:56:42 +02:00

37 lines
1.2 KiB
Python

# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Clamav(AutotoolsPackage):
"""Open source antivirus engine for detecting trojans,
viruses, malware & other malicious threats."""
homepage = "https://www.clamav.net/"
url = "https://www.clamav.net/downloads/production/clamav-0.101.2.tar.gz"
version('0.101.2', sha256='0a12ebdf6ff7a74c0bde2bdc2b55cae33449e6dd953ec90824a9e01291277634')
depends_on('pkgconfig', type='build')
depends_on('json-c')
depends_on('openssl')
depends_on('pcre')
depends_on('yara')
depends_on('zlib')
depends_on('bzip2')
def configure_args(self):
spec = self.spec
args = [
'--enable-llvm=no',
'--with-libjson=%s' % spec['json-c'].prefix,
'--with-openssl=%s' % spec['openssl'].prefix,
'--with-pcre=%s' % spec['pcre'].prefix,
'--with-zlib=%s' % spec['zlib'].prefix,
'--with-bzip2=%s' % spec['bzip2'].prefix
]
return args