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