fastjet: avoid plugins=all,cxx combinations (#46276)

* fastjet: avoid plugins=all,cxx combinations

* fastjet: depends_on fortran when plugins=all or plugins=pxcone
This commit is contained in:
Wouter Deconinck 2024-09-12 15:46:08 -05:00 committed by GitHub
parent 94af1d2dfe
commit 6051d56014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,11 +58,12 @@ class Fastjet(AutotoolsPackage):
version("2.3.2", sha256="ba8b17fcc8edae16faa74608e8da53e87a8c574aa21a28c985ea0dfedcb95210")
version("2.3.1", sha256="16c32b420e1aa7d0b6fecddd980ea0f2b7e3c2c66585e06f0eb3142677ab6ccf")
version("2.3.0", sha256="e452fe4a9716627bcdb726cfb0917f46a7ac31f6006330a6ccc1abc43d9c2d53")
depends_on("cxx", type="build") # generated
depends_on("fortran", type="build") # generated
# older version use .tar instead of .tar.gz extension, to be added
depends_on("cxx", type="build")
depends_on("fortran", type="build", when="plugins=all")
depends_on("fortran", type="build", when="plugins=pxcone")
variant("shared", default=True, description="Builds a shared version of the library")
variant("auto-ptr", default=False, description="Use auto_ptr")
variant(
@ -99,9 +100,9 @@ class Fastjet(AutotoolsPackage):
)
variant(
"plugins",
multi=True,
values=("all", "cxx") + available_plugins,
default="all",
values=disjoint_sets(("all",), ("cxx",), available_plugins)
.prohibit_empty_set()
.with_default("all"),
description="List of plugins to enable, or 'cxx' or 'all'",
)