diff options
-rw-r--r-- | var/spack/repos/builtin/packages/prophecy4f/package.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/prophecy4f/package.py b/var/spack/repos/builtin/packages/prophecy4f/package.py new file mode 100644 index 0000000000..c026ec2054 --- /dev/null +++ b/var/spack/repos/builtin/packages/prophecy4f/package.py @@ -0,0 +1,33 @@ +# Copyright 2013-2022 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 Prophecy4f(MakefilePackage): + """Prophecy4f is a Monte Carlo integrator for + Higgs decays H -> WW/ZZ -> 4 fermions. """ + + homepage = "https://prophecy4f.hepforge.org/" + url = "https://prophecy4f.hepforge.org/downloads/?f=Prophecy4f-3.0.2.tar.gz" + + maintainers = ['haralmha', 'vvolkl'] + + version('3.0.2', sha256='01e6ad4d7e913082c1dcabd589173f5d962086dd7860c710f14a0528d8d80eb7') + + depends_on('collier') + + @property + def build_targets(self): + return [ + "COLLIERDIR={0}/lib".format(self.spec['collier'].prefix), + "INPUT=-I{0}/include/".format(self.spec['collier'].prefix), + "FC=gfortran" + ] + + def install(self, spec, prefix): + mkdir(prefix.bin) + install('Prophecy4f', prefix.bin) + install('defaultinput', prefix) |