summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/prophecy4f/package.py
blob: dd9e3ded2901fa48b0976a1ffd5e0dd4c8fe85e0 (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
34
35
36
37
# Copyright 2013-2023 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.package 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")

    tags = ["hep"]

    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)
        mkdir(prefix.share)
        mkdir(prefix.share.prophecy4f)
        install("Prophecy4f", prefix.bin)
        install("defaultinput", prefix)