File indexing completed on 2026-03-30 07:48:31
0001 from spack.package import *
0002
0003 try:
0004 from spack_repo.builtin.packages.dd4hep.package import Dd4hep as BuiltinDd4hep
0005 except ImportError:
0006 from spack.pkg.builtin.dd4hep import Dd4hep as BuiltinDd4hep
0007
0008 class Dd4hep(BuiltinDd4hep):
0009 version("1.32.1", sha256="f47fbede967b609e142c3116d23b4993f9d57fbae28a1739b5333503bc498883")
0010 version("1.32", sha256="8bde4eab9af9841e040447282ea7df3a16e4bcec587c3a1e32f41987da9b1b4d")
0011 variant("frames", default=True, description="Use podio frames", when="@1.25.1")
0012 variant("frames", default=True, description="Use podio frames", when="@1.24")
0013 patch(
0014 "https://github.com/AIDASoft/DD4hep/pull/1598.diff?full_index=1",
0015 sha256="2f2c1790431eb9947d652576c56c698e9051d1fdc8f3da9ffb758c8c0b1c3da0",
0016 when="@=1.35"
0017 )
0018 patch(
0019 "https://github.com/AIDASoft/DD4hep/pull/1566.diff?full_index=1",
0020 sha256="190ddf3e8538d7194589556ed7e455503bf93374cd98a2f077f920b5d2f2762c",
0021 when="@=1.35"
0022 )
0023 patch(
0024 "https://github.com/AIDASoft/DD4hep/pull/1540.diff?full_index=1",
0025 sha256="c3babcb1fe3ebe8520f2cd8c218dd2726563ab0450e6d623de17f6eecbe2038c",
0026 when="@:1.34",
0027 )
0028 patch(
0029 "https://github.com/AIDASoft/DD4hep/pull/1495.diff?full_index=1",
0030 sha256="e9de70d2c4702147c769da7dc729ec78e0bd0858af9a2d3eb68310667fa21c02",
0031 when="@:1.32.1",
0032 )
0033 patch(
0034 "https://github.com/AIDASoft/DD4hep/pull/1476.diff?full_index=1",
0035 sha256="d72251d248f657e28e3138cf38cf70d865db78611fa5d4826ea399c7ab419a6d",
0036 when="@1.31:1.32.1",
0037 )
0038 patch(
0039 "https://github.com/AIDASoft/DD4hep/pull/1471.diff?full_index=1",
0040 sha256="6e294a17df753944c2db91729967d82f4f215efa627a50b98c098ac3e2f6e5bc",
0041 when="@1.31:1.32.1",
0042 )
0043 patch(
0044 "https://github.com/AIDASoft/DD4hep/pull/1449.diff?full_index=1",
0045 sha256="15f24738f223add8c4d4376c771863cac4b476d1779811f8020a2533ad9890e6",
0046 when="@1.20:1.32.0",
0047 )
0048 patch(
0049 "DDCorePlugins-install-headers.patch",
0050 when="@1.26:",
0051 )
0052 patch(
0053 "https://github.com/AIDASoft/DD4hep/pull/1365.diff?full_index=1",
0054 sha256="fe28edb4059647e4f18141d08f7ba8470b5e99dc03048d4faf404170285d89fd",
0055 when="@=1.30",
0056 )
0057 patch(
0058 "https://github.com/AIDASoft/DD4hep/pull/1294.diff?full_index=1",
0059 sha256="252579cceb1f66edc20e4e14b3390d2b8ec231450aad0f9e1d3c585e34284a1c",
0060 when="@=1.29",
0061 )
0062 patch(
0063 "https://github.com/AIDASoft/DD4hep/pull/1283.diff?full_index=1",
0064 sha256="40124c528c68b4056d3c5af536683ed9f2f9e9bfa750d41e50471895aa58fc4b",
0065 when="@=1.29",
0066 )
0067 patch(
0068 "https://github.com/AIDASoft/DD4hep/pull/1190.diff?full_index=1",
0069 sha256="d6273e4f0367f72b9572b337338d1269a154b948b72f31ff69ad62f850e0d4ac",
0070 when="@=1.27",
0071 )
0072 patch(
0073 "https://github.com/AIDASoft/DD4hep/pull/1157/commits/1c79b1492373dd66b17ea2530a63ec434396afa9.patch?full_index=1",
0074 sha256="e544cc11c7e1ac9ccacf6688f3d966e912b1a2e1a7460f7c16212a0a4df5b05e",
0075 when="@=1.26",
0076 )
0077 patch(
0078 "https://github.com/AIDASoft/DD4hep/pull/1158/commits/fecf99a2732a3f6aafc5fbf0f4a05af5bac196f8.patch?full_index=1",
0079 sha256="ecc8e5534a5c7e9a4e3008508e17646a578ce7a44897df514dfd2c9a449968b1",
0080 when="@=1.26",
0081 )
0082 patch(
0083 "https://github.com/AIDASoft/DD4hep/pull/1168/commits/0cdf506db8a9f47698129b5c8f52b66f53429818.patch?full_index=1",
0084 sha256="a75d89c86ab44ef1f3f86201e083c85e4e8f0b3120785d5a76fdc81256a937ac",
0085 when="@=1.26",
0086 )
0087 patch(
0088 "https://github.com/AIDASoft/DD4hep/pull/1161.diff?full_index=1",
0089 sha256="4139360e84eb220f2067b85f2dc477b4cd179fb98d7e117a98f43b1fa0baa395",
0090 when="@=1.26",
0091 )
0092 patch(
0093 "https://github.com/AIDASoft/DD4hep/pull/1170.diff?full_index=1",
0094 sha256="dc6985f7f92cb2292b18cb5b7059226c475d3c930f834c40b49e415bbd7a2946",
0095 when="@=1.26",
0096 )
0097 patch(
0098 "https://github.com/AIDASoft/DD4hep/pull/1086.patch?full_index=1",
0099 sha256="6b049415e2c6989f3927ff2c56e4764de1650cad6ed301d8ac0f047f4e0039c5",
0100 when="@1.24:1.25.1",
0101 )
0102 patch(
0103 "https://github.com/AIDASoft/DD4hep/compare/f4c63132f509f80e7c81a624cdf46e024131cf2a..3c6ede06ea338e3ea6a01b664fb16089ac4548e5.patch?full_index=1",
0104 sha256="abefeb866a42baca653ea4329c984e19aeab349e5c610bf38a495083379f9ec5",
0105 when="@1.24",
0106 )
0107 patch(
0108 "revert-Geant4Output2EDM4hep-dd4hep-1-25-1-to-1-23.patch",
0109 sha256="1958c7951ed53538631ae6bc0d6663ea092e19f63367ed0fe1ab2bb00ddf4903",
0110 when="@1.25.1 -frames",
0111 )
0112 patch(
0113 "revert-Geant4Output2EDM4hep-dd4hep-1-24-to-1-23.patch",
0114 sha256="1c5697eabab65d4c2d49d710c14a33673e92b0349ed8299041c9da2d7878831b",
0115 when="@1.24 -frames",
0116 )
0117 patch(
0118 "https://github.com/AIDASoft/DD4hep/pull/1066.patch?full_index=1",
0119 sha256="c6df47768279c65f6a9d3cee57b038f37cb35c845deef22476876ea607ff14a1",
0120 when="@1.25.1",
0121 )
0122 patch(
0123 "https://github.com/AIDASoft/DD4hep/pull/1068.patch?full_index=1",
0124 sha256="401a349435ca6673a2817c32c39e2fa73ca17241fb2bf3f836c110a2f1c90431",
0125 when="@1.24:1.25.1",
0126 )
0127 patch(
0128 "https://github.com/AIDASoft/DD4hep/pull/1070.patch?full_index=1",
0129 sha256="d84db1f3a8eb3e8b9398db9aab3753569855bc5753f9f15faf62bfdbe28f8f5c",
0130 when="@1.24:1.25.1",
0131 )
0132 patch(
0133 "https://github.com/AIDASoft/DD4hep/pull/1071.patch?full_index=1",
0134 sha256="8a71caf957a4b0ecb05a2fc5e39265e79e0af0d98e89b75406957815442c7b30",
0135 when="@1.25.1",
0136 )
0137 patch(
0138 "https://github.com/AIDASoft/DD4hep/pull/1074.patch?full_index=1",
0139 sha256="1c0737cc941995c4f28591ac34b5007e8b3b23f7d54251d8db277e9aff8da411",
0140 when="@1.25.1",
0141 )
0142 patch(
0143 "https://github.com/AIDASoft/DD4hep/pull/1080.patch?full_index=1",
0144 sha256="2dde47795f8534fcbfb9454b3b729a5a758e2dc90b6bd9f5f8bdc8940e2da0f7",
0145 when="@1.25.1",
0146 )
0147 @when('@1.25.1')
0148 def setup_run_environment(self, env):
0149 super().setup_run_environment(env)
0150 env.set("CXXFLAGS", "-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type")
0151 @when('@1.25.1')
0152 def setup_dependent_build_environment(self, env, dependent_spec):
0153 super().setup_dependent_build_environment(env, dependent_spec)
0154 env.set("CXXFLAGS", "-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type")
0155 patch(
0156 "https://github.com/AIDASoft/DD4hep/pull/1081.patch?full_index=1",
0157 sha256="07522f7fac0fc38513cb08b663ef7425936e940c55f277eb2112916b194f5a68",
0158 when="@1.25.1",
0159 )
0160 patch(
0161 "https://github.com/AIDASoft/DD4hep/pull/1105.patch?full_index=1",
0162 sha256="bcfa71a74368034818ff4810cd5738a13fc56d1d49742b19abe7397de1531596",
0163 when="@1.19:1.25.1",
0164 )
0165 patch(
0166 "https://github.com/AIDASoft/DD4hep/pull/1106.patch?full_index=1",
0167 sha256="5a0ed96babc56d01663f157e50455a746bba63a4a7f27779325fa5e097cf7bb5",
0168 when="@:1.25.1",
0169 )
0170 patch(
0171 "https://github.com/AIDASoft/DD4hep/pull/1142.patch?full_index=1",
0172 sha256="12bca1354871caad6f6d86710ad926a44d3a8e4090f15b41e98a5c09faabf0de",
0173 when="@:1.25.1",
0174 )
0175 patch(
0176 "https://github.com/AIDASoft/DD4hep/commit/8693a29669d03dec5e06b61e6df7cc0df1e0aa5c.patch",
0177 sha256="28fb1c17eb1c06c24b304511308fd3b0af708f2ba3aec3e4cb13d7da6abbc51c",
0178 when="@1.21:1.22",
0179 )
0180 patch(
0181 "https://github.com/AIDASoft/DD4hep/pull/983.patch?full_index=1",
0182 sha256="969fbdd9a35a07fe91d6376517621d3ddba28f13668d139fd9405052e3e6f1a6",
0183 when="@:1.23",
0184 )
0185 patch(
0186 "https://github.com/AIDASoft/DD4hep/pull/989.patch?full_index=1",
0187 sha256="b29bec9faac4461f799f0ed12b85bf929ae4126fbf591fa8e2cca51fffae12e7",
0188 when="@1.23",
0189 )
0190 patch(
0191 "https://github.com/AIDASoft/DD4hep/pull/1011.patch?full_index=1",
0192 sha256="15f4b9cc6e36aea836191b2154c0609a1ab55f085a0836609dfca804cbe78c6d",
0193 when="@1.23",
0194 )
0195 patch(
0196 "https://github.com/AIDASoft/DD4hep/pull/1017.patch?full_index=1",
0197 sha256="66aa2be073a58cdc3c3cb912c2dcf943c65b4e7af91ebe7bb1479827433380b7",
0198 when="@1.23",
0199 )
0200 patch(
0201 "https://github.com/AIDASoft/DD4hep/pull/1357.patch?full_index=1",
0202 sha256="3858ac2bb558e410db994d4b42b68012d17fe83ae2247cb70bb5460009e2ae4d",
0203 when="@:1.30.1",
0204 )