whizard: add a dependency on ghostscript and fix +openmp (#44414)

This commit is contained in:
Juan Miguel Carceller 2024-05-28 10:57:56 +02:00 committed by GitHub
parent 5d8beaf0ed
commit 8c84c5ff66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,7 @@ class Whizard(AutotoolsPackage):
when="+openloops",
)
depends_on("texlive", when="+latex")
depends_on("ghostscript", when="+latex")
depends_on("zlib-api")
# Fix for https://github.com/key4hep/key4hep-spack/issues/71
@ -159,8 +160,8 @@ def configure_args(self):
if "+openloops" in spec:
args.append(f"--with-openloops={spec['openloops'].prefix}")
if "+openmp" not in spec:
args.append("--disable-openmp")
if "+openmp" in spec:
args.append("--enable-fc-openmp")
return args
def url_for_version(self, version):