File indexing completed on 2025-01-18 09:15:26
0001
0002
0003
0004
0005
0006 from spack.package import *
0007
0008
0009 class Ejana(CMakePackage):
0010 """Implementation of EIC reconstruction in JANA."""
0011
0012 homepage = "https://gitlab.com/eic/escalate/ejana/"
0013 url = "https://gitlab.com/eic/escalate/ejana/-/archive/v1.2.1/ejana-v1.2.1.tar.gz"
0014 git = "https://gitlab.com/eic/escalate/ejana.git"
0015 list_url = "https://gitlab.com/eic/escalate/ejana/-/tags"
0016
0017 maintainer = ["wdconinc"]
0018
0019 tags = ["eic"]
0020
0021 version("master", branch="master")
0022 version(
0023 "1.3.2",
0024 sha256="fac4ce1a78caa1588602177f02d3345e1b0e8e4d11777ee221e4265cd89992b1",
0025 )
0026 version(
0027 "1.3.1",
0028 sha256="6005e1cdbd1fe6f65d0ebc80e8945728ad42bba3b07fee93cbc8c4b997a628db",
0029 )
0030 version(
0031 "1.3.0",
0032 sha256="2b60c28b07ed3fa883c44cc74a3523c8ba3299fe25bdec58782910fa52f33cfb",
0033 )
0034 version(
0035 "1.2.7",
0036 sha256="789895f79e6ca42b694a65a4de7580d3cf8686f67377215a41da247bf350aa2f",
0037 )
0038 version(
0039 "1.2.6",
0040 sha256="88fd93bf0c063753467d8fbfa5794879a38ee82524e996782cb82d7edc94b559",
0041 )
0042 version(
0043 "1.2.5",
0044 sha256="0496ff11df4284681458069ca133693dea1351dde22c130744129dec060456e5",
0045 )
0046 version(
0047 "1.2.4",
0048 sha256="b43fe1b0bb6b82e190547049c6c17d5ff97d8062070eaca7872eb3b1ff7788a3",
0049 )
0050 version(
0051 "1.2.3",
0052 sha256="552bd7bd536ecb33c55cc9c1dfb3f870c253fd355456d6cca26c3665f450920d",
0053 )
0054 version(
0055 "1.2.2",
0056 sha256="d6e906591159014cbfa9a2a4ebc0354fdd8948436dddb8c3edc0bdf5d9544b69",
0057 )
0058 version(
0059 "1.2.1",
0060 sha256="80c1c16f7e350747c7980526c6c863db44c9b5dca9aadfe8e1be40e8ba352acd",
0061 )
0062 version(
0063 "1.2.0",
0064 sha256="9390facfcf77702efb102d3fda7711e2da025c7637b23f45ee055507fabda71a",
0065 )
0066
0067 variant("acts", default=False, description="Use ACTS")
0068 variant("genfit", default=False, description="Use genfit")
0069
0070 depends_on("cxx", type="build")
0071 depends_on("cmake@3.9:", type="build")
0072 depends_on("jana2 +root")
0073 depends_on("hepmc3")
0074 depends_on("root@6.00.00:")
0075 depends_on("acts", when="+acts")
0076 depends_on("genfit", when="+genfit")
0077 depends_on("eic-smear")
0078
0079 depends_on("acts +identification +tgeo", when="+acts")
0080 depends_on("genfit", when="+genfit")
0081
0082 def cmake_args(self):
0083 args = []
0084
0085 args.append("-DROOT_DIR={0}".format(self.spec["root"].prefix))
0086 args.append("-DJANA_DIR={0}".format(self.spec["jana2"].prefix))
0087 args.append("-DHepMC3_DIR={0}".format(self.spec["hepmc3"].prefix))
0088 args.append("-DEIC_SMEAR_DIR={0}".format(self.spec["eic-smear"].prefix))
0089 if "+acts" in self.spec:
0090 args.append("-DActs_DIR={0}".format(self.spec["acts"].prefix))
0091 if "+genfit" in self.spec:
0092 args.append("-DGENFIT_DIR={0}".format(self.spec["genfit"].prefix))
0093
0094 return args