summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-02-19 14:55:04 +0100
committerGitHub <noreply@github.com>2021-02-19 14:55:04 +0100
commit95fd9ff6c12058bf02074b148b0eaa643e916545 (patch)
tree28f6797d4ae254186c047d79e30199537e6616e1
parentf5e65e94e6c67853d203c61645f99d26bfb100f0 (diff)
downloadspack-95fd9ff6c12058bf02074b148b0eaa643e916545.tar.gz
spack-95fd9ff6c12058bf02074b148b0eaa643e916545.tar.bz2
spack-95fd9ff6c12058bf02074b148b0eaa643e916545.tar.xz
spack-95fd9ff6c12058bf02074b148b0eaa643e916545.zip
Add photos 3.64; add hepmc2/hepmc3 variants (#21795)
-rw-r--r--var/spack/repos/builtin/packages/photos/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/photos/package.py b/var/spack/repos/builtin/packages/photos/package.py
index 94896ad1b5..7c7407ba66 100644
--- a/var/spack/repos/builtin/packages/photos/package.py
+++ b/var/spack/repos/builtin/packages/photos/package.py
@@ -15,15 +15,21 @@ class Photos(AutotoolsPackage):
tags = ['hep']
+ version('3.64', sha256='cb4096b4804289fc4d54a992caa566cbbd33f41f65f8906deb01200dc5163027')
version('3.61', sha256='acd3bcb769ba2a3e263de399e9b89fd6296405c9cbc5045b83baba3e60db4b26')
+ variant('hepmc', default=True, description='Build with HepMC2 support')
+ variant('hepmc3', default=False, description='Build with HepMC3 support')
+
maintainers = ['vvolkl']
- depends_on('hepmc@:2.99.99')
+ depends_on('hepmc', when='+hepmc')
+ depends_on('hepmc3', when='+hepmc3')
def configure_args(self):
args = []
- args.append('--with-hepmc=%s' % self.spec["hepmc"].prefix)
- args.append('--without-hepmc3')
+ args.extend(self.with_or_without('hepmc', 'prefix'))
+ args.extend(self.with_or_without('hepmc3', 'prefix'))
+
return args