Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:26

0001 from spack.package import *
0002 
0003 
0004 class Edm4eic(CMakePackage):
0005     """A data model for EIC defined with podio and based on EDM4hep."""
0006 
0007     homepage = "https://github.com/eic/EDM4eic"
0008     url = "https://github.com/eic/EDM4eic/archive/refs/tags/v1.0.0.tar.gz"
0009     git = "https://github.com/eic/EDM4eic.git"
0010     list_url = "https://github.com/eic/EDM4eic/tags"
0011 
0012     maintainers = ["wdconinc"]
0013 
0014     tags = ["eic"]
0015 
0016     version("main", branch="main")
0017     version("8.0.0", sha256="91c483e1473fa015afe43040f7851b5d1ce7baa84aa2583c9de579401b466d13")
0018     version("7.0.0", sha256="48ff297dcdda285079bf63df9d7eb996072b41298ecc6c0a766d9f5aa48d85e8")
0019     version("6.0.1", sha256="5c159c61a284c6ad3bcba65532b21ed11fddc194129e84347d30c519d1ef8c77")
0020     version("6.0.0", sha256="9215b1477ddaaeff5bd0f9ff0990a4b54dc4780fb6c6ab36f0bd9bcc83e59928")
0021     version(
0022         "5.0.0",
0023         sha256="31ddc38b73909f2faf6a2ade5521104401b440fcbb6fccea4ed592427d7dcac2"
0024     )
0025     version(
0026         "4.0.0", 
0027         sha256="564d4ddff9a52c6358d72a99857d9e755af0fc8f782900dab471e65e6e34f0d3")
0028     version(
0029         "3.0.1",
0030         sha256="f5d3ed307c53a1197c71581b7095c40f9cd0afd624997a8720428d24bc0c0d60",
0031     )
0032     version(
0033         "3.0.0",
0034         sha256="dc7cc7f2af17bb90e0379487e651033e2694fa8926b6e9cb6555cc4b6a4ad255",
0035     )
0036     version(
0037         "2.1.0",
0038         sha256="eec896b8c4921904aefc0065c13d6a164d014029ead101a1bab5201400d1c482",
0039     )
0040     version(
0041         "2.0.0",
0042         sha256="bedce5fd3fd3a2d6ff3258e8857819a89cc467de0aa5871999265f9ec7e39015",
0043     )
0044     version(
0045         "1.2.2",
0046         sha256="a2b63689d05ee1c8836d9652ba8ccfe45f08558b6a89a75e4649654dd9a5073c",
0047     )
0048     version(
0049         "1.2.1",
0050         sha256="8349864f5c923e991d31462cc7987cd39c050910d4db8847575c8d4fd61967a5",
0051     )
0052     version(
0053         "1.2.0",
0054         sha256="e70ec6d2a93002237c1bfd0046e96f3838f9dab3f5326bdb17826999b5f42759",
0055     )
0056     version(
0057         "1.1.0",
0058         sha256="f50a6ef77d8247aa30da5b1e574bb24ab82c86c8706a8f3900ff151dafe9a754",
0059     )
0060     version(
0061         "1.0.1",
0062         sha256="683dcd463757f9e4ad47e493be1f5fb40a6c1aae7d249ff18a19367384a61070",
0063     )
0064     version(
0065         "1.0.0",
0066         sha256="700ae7453f16786db4d3ace1a146914e1f0b935a08039c9f1f6a5ebe4aa173ae",
0067     )
0068 
0069     variant(
0070         "cxxstd",
0071         default="17",
0072         values=("17", "20"),
0073         multi=False,
0074         description="Use the specified C++ standard when building.",
0075     )
0076 
0077     depends_on("cxx", type="build")
0078     depends_on("python", type="build")
0079     depends_on("cmake@3.3:", type="build")
0080     depends_on("py-jinja2", type="build")
0081     depends_on("py-pyyaml", type="build")
0082 
0083     depends_on("edm4hep@0.4.1:", when="@1:")
0084     depends_on("podio@0.15:", when="@1:")
0085     depends_on("cli11", when="@1.1:")
0086     depends_on("root@6.08:")
0087 
0088     def cmake_args(self):
0089         args = []
0090         # C++ Standard
0091         args.append(
0092             self.define("CMAKE_CXX_STANDARD", self.spec.variants["cxxstd"].value)
0093         )
0094         return args