zoltan: add +scotch variant (#49845)
* add scotch variant to zoltan * style fix * apply satisfies func and F-strings
This commit is contained in:
parent
1f77b33255
commit
0bec90ecd7
@ -36,6 +36,7 @@ class Zoltan(AutotoolsPackage):
|
|||||||
variant("mpi", default=True, description="Enable MPI support.")
|
variant("mpi", default=True, description="Enable MPI support.")
|
||||||
variant("parmetis", default=False, description="Enable ParMETIS support.")
|
variant("parmetis", default=False, description="Enable ParMETIS support.")
|
||||||
variant("int64", default=False, description="Enable 64bit indices.")
|
variant("int64", default=False, description="Enable 64bit indices.")
|
||||||
|
variant("scotch", default=False, description="Enable PT-Scotch support.")
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build") # generated
|
||||||
depends_on("cxx", type="build") # generated
|
depends_on("cxx", type="build") # generated
|
||||||
@ -47,6 +48,7 @@ class Zoltan(AutotoolsPackage):
|
|||||||
depends_on("parmetis@4:", when="+parmetis")
|
depends_on("parmetis@4:", when="+parmetis")
|
||||||
depends_on("metis+int64", when="+parmetis+int64")
|
depends_on("metis+int64", when="+parmetis+int64")
|
||||||
depends_on("metis", when="+parmetis")
|
depends_on("metis", when="+parmetis")
|
||||||
|
depends_on("scotch", when="+scotch")
|
||||||
|
|
||||||
depends_on("perl@:5.21", type="build", when="@:3.6")
|
depends_on("perl@:5.21", type="build", when="@:3.6")
|
||||||
depends_on("autoconf", type="build")
|
depends_on("autoconf", type="build")
|
||||||
@ -145,6 +147,16 @@ def configure_args(self):
|
|||||||
else:
|
else:
|
||||||
config_args.append("--with-id-type=uint")
|
config_args.append("--with-id-type=uint")
|
||||||
|
|
||||||
|
if spec.satisfies("+scotch"):
|
||||||
|
scotch_prefix = spec["scotch"].prefix
|
||||||
|
config_args.extend(
|
||||||
|
[
|
||||||
|
"--with-scotch",
|
||||||
|
f"--with-scotch-incdir={scotch_prefix.include}",
|
||||||
|
f"--with-scotch-libdir={scotch_prefix.lib}",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
if "+mpi" in spec:
|
if "+mpi" in spec:
|
||||||
config_args.extend(
|
config_args.extend(
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user