[whizard] Add compiler constraints and minimal ocaml version (#19231)
This commit is contained in:
parent
ba04e8b890
commit
31772844d8
@ -55,8 +55,8 @@ class Whizard(AutotoolsPackage):
|
|||||||
variant('latex', default=False,
|
variant('latex', default=False,
|
||||||
description="data visualization with latex")
|
description="data visualization with latex")
|
||||||
|
|
||||||
depends_on('ocaml', type='build', when="@3:")
|
depends_on('ocaml@4.02.3:', type='build', when="@3:")
|
||||||
depends_on('ocaml~force-safe-string', type='build', when="@:2.99.99")
|
depends_on('ocaml@4.02.3:~force-safe-string', type='build', when="@:2.99.99")
|
||||||
depends_on('hepmc', when="hepmc=2")
|
depends_on('hepmc', when="hepmc=2")
|
||||||
depends_on('hepmc3', when="hepmc=3")
|
depends_on('hepmc3', when="hepmc=3")
|
||||||
depends_on('lcio', when="+lcio")
|
depends_on('lcio', when="+lcio")
|
||||||
@ -69,6 +69,14 @@ class Whizard(AutotoolsPackage):
|
|||||||
depends_on('texlive', when="+latex")
|
depends_on('texlive', when="+latex")
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
|
|
||||||
|
conflicts('%gcc@:5.0.99',
|
||||||
|
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')
|
||||||
|
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
# whizard uses the compiler during runtime,
|
# whizard uses the compiler during runtime,
|
||||||
# and seems incompatible with
|
# and seems incompatible with
|
||||||
|
Loading…
Reference in New Issue
Block a user