From a294acfb73839c9782aff976953a969fb44e161e Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Fri, 24 Dec 2021 06:47:18 -0600 Subject: pythia8: bugfix for pythia8 +fastjet (#28153) --- var/spack/repos/builtin/packages/pythia8/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/pythia8/package.py b/var/spack/repos/builtin/packages/pythia8/package.py index 9b9ea46c43..eeda2b680d 100644 --- a/var/spack/repos/builtin/packages/pythia8/package.py +++ b/var/spack/repos/builtin/packages/pythia8/package.py @@ -97,8 +97,12 @@ class Pythia8(AutotoolsPackage): args += '--without-mg5mes' args += self.with_or_without('hepmc3', activation_value='prefix') - args += self.with_or_without('fastjet3', activation_value='prefix', - variant='fastjet') + + if '+fastjet' in self.spec: + args += '--with-fastjet3=' + self.spec['fastjet'].prefix + else: + args += '--without-fastjet3' + args += self.with_or_without('evtgen', activation_value='prefix') args += self.with_or_without('root', activation_value='prefix') args += self.with_or_without('rivet', activation_value='prefix') -- cgit v1.2.3-70-g09d2