summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/circe2/package.py
blob: 21ae748bbab8b0e777c1842f276a29d09aacb24b (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
38
39
40
41
42
# 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 Circe2(AutotoolsPackage):
    """Circe2 is a beam spectrum generator that provides efficient, realistic
    and reproducible parametrizations of the correlated e+/e- and gamma beam
    spectra for linear colliders and photon colliders.
    """

    homepage = "https://whizard.hepforge.org/circe.html"
    url = "https://git.physik.uni-wuerzburg.de/ohl/circe2-public/-/raw/main/circe2-3.1.2.1.tar.gz"

    tags = ["hep"]

    maintainers("tmadlener")

    version("3.1.2.1", sha256="8bb09e6f566adefcf7b5b1cf9d9fe4536dd3dd11ed3674861de29e177ee0bb04")

    variant("doc", default=False, description="Create the latex documentation")

    depends_on("ocaml@4.05:")
    depends_on("texlive", when="+doc")

    conflicts(
        "%gcc@:5.0",
        msg="gfortran needs to support Fortran 2008. For more detailed information see https://whizard.hepforge.org/compilers.html",
    )
    conflicts(
        "%gcc@6.5.0",
        msg="Due to severe regressions, gfortran 6.5.0 can not be used. See https://whizard.hepforge.org/compilers.html",
    )

    conflicts(
        "%intel@:17",
        msg="The fortran compiler needs to support Fortran 2008. For more detailed information see https://whizard.hepforge.org/compilers.html",
    )