thepeg: Add zlib dependency (#29370)

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
haralmha 2022-03-09 10:02:37 +01:00 committed by GitHub
parent 811abf5d00
commit 2111cf8044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,7 @@ class Thepeg(AutotoolsPackage):
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('zlib')
variant('hepmc', default='2', values=('2', '3'), description='HepMC interface to build ')
@ -78,6 +79,7 @@ class Thepeg(AutotoolsPackage):
def configure_args(self):
args = ['--with-gsl=' + self.spec['gsl'].prefix, '--without-javagui']
args += ['--with-zlib=' + self.spec['zlib'].prefix]
if self.spec.satisfies('@:1.8'):
args += ['--with-LHAPDF=' + self.spec['lhapdf'].prefix]