prophecy4f: add new package (#29289)

This commit is contained in:
haralmha 2022-03-03 15:03:10 +01:00 committed by GitHub
parent 1834ab971d
commit ebf92b428e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)