File indexing completed on 2026-03-30 07:48:31
0001
0002
0003
0004
0005
0006
0007 from spack.package import *
0008 from spack_repo.builtin.build_systems.cmake import CMakePackage
0009
0010
0011 class Irt2(CMakePackage):
0012 """Indirect Ray Tracing library for EPIC Cherenkov detector reconstruction."""
0013
0014 homepage = "https://github.com/eic/irt"
0015 url = "https://github.com/eic/irt/archive/refs/tags/v2.1.0.zip"
0016 list_url = "https://github.com/eic/irt/tags"
0017 git = "https://github.com/eic/irt.git"
0018
0019 maintainers = ["chchatte92", "veprbl"]
0020 tags = ["eic"]
0021
0022 version("2.1.3", sha256="68ba8abdcaa3266ef0e61e442cf65c2c2b2cbc758502e11b2a56e10361c7cf55")
0023 version("2.1.2", sha256="93232b2c40f574410c4c3045c997c0f9c572280b6cfe2e30af589f36ea82106e")
0024 version("2.1.1", sha256="214ab5918b9fcf4a3bebc3f8fa5e06c0d0dc77ff7d2233d771c83967af5a634d")
0025 version("2.1.0", sha256="906a0cf7ec111bbf7e3f95d48daa8be6f0de592ffde2222aeec53f371abc2cb7")
0026
0027 variant("root_io", default=False, description="Build dictionaries for ROOT IO")
0028
0029 depends_on("cxx", type="build")
0030
0031 depends_on("root@6: +root7")
0032
0033 def cmake_args(self):
0034 args = [
0035 "-DEVALUATION=OFF",
0036 "-DDELPHES=OFF",
0037 ]
0038 args.append(self.define_from_variant("IRT_ROOT_IO", "root_io"))
0039 return args