summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/prophecy4f/package.py
blob: c026ec20543e4c2aab2e351e953c94ecc27fa087 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)