podio: add v1.2; conflicts +rntuple ^root@6.32: when @:0.99 (#47991)

Co-authored-by: Thomas Madlener <thomas.madlener@desy.de>
This commit is contained in:
Wouter Deconinck 2025-01-13 05:48:25 -06:00 committed by GitHub
parent 53353ae64e
commit c0c1a4aea1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View File

@ -76,6 +76,7 @@ class Edm4hep(CMakePackage):
depends_on("nlohmann-json@3.10.5:", when="@:0.99.1")
depends_on("podio@1:", when="@0.99:")
depends_on("podio@0.15:", when="@:0.10.5")
depends_on("podio@:1.1", when="@:0.99.0")
for _std in _cxxstd_values:
for _v in _std:
depends_on(f"podio cxxstd={_v.value}", when=f"cxxstd={_v.value}")

View File

@ -19,6 +19,7 @@ class Podio(CMakePackage):
tags = ["hep", "key4hep"]
version("master", branch="master")
version("1.2", sha256="bc97ba09ce908e55d4c5faa78d9739dde7daefd9337ae98351813b13708d0685")
version("1.1", sha256="2cb5040761f3da4383e1f126da25d68e99ecd8398e0ff12e7475a3745a7030a6")
version("1.0.1", sha256="915531a2bcf638011bb6cc19715bbc46d846ec8b985555a1afdcd6abc017e21b")
version("1.0", sha256="491f335e148708e387e90e955a6150e1fc2e01bf6b4980b65e257ab0619559a9")
@ -71,12 +72,22 @@ class Podio(CMakePackage):
depends_on("cxx", type="build") # generated
_cxxstd_values = (conditional("17", when="@:1.2"), conditional("20", when="@0.14.1:"))
variant(
"cxxstd",
default="17",
values=("17", conditional("20", when="@0.15:")),
values=_cxxstd_values,
multi=False,
description="Use the specified C++ standard when building.",
when="@:1.1",
)
variant(
"cxxstd",
default="20",
values=_cxxstd_values,
multi=False,
description="Use the specified C++ standard when building.",
when="@1.2:",
)
variant("sio", default=False, description="Build the SIO I/O backend")
variant("rntuple", default=False, description="Build the RNTuple backend")
@ -101,10 +112,14 @@ class Podio(CMakePackage):
depends_on("sio", type=("build", "link"), when="+sio")
depends_on("catch2@3.0.1:", type=("test"), when="@:0.16.5")
depends_on("catch2@3.1:", type=("test"), when="@0.16.6:")
depends_on("catch2@3.4:", type=("test"), when="@0.17.1: cxxstd=20")
depends_on("catch2@3.3:", type=("test"), when="@1.2: cxxstd=17")
depends_on("py-graphviz", type=("run"))
depends_on("py-tabulate", type=("run", "test"), when="@0.16.6:")
conflicts("+rntuple", when="@:0.16", msg="rntuple support requires at least podio@0.17")
conflicts("+rntuple ^root@6.32:", when="@:0.99", msg="rntuple API change requires podio@1:")
conflicts("+rntuple ^root@6.34:", when="@:1.1", msg="rntuple API change requires podio@1.2:")
# See https://github.com/AIDASoft/podio/pull/600
patch(