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 Eicd(CMakePackage):
0005     """A podio based data model for the EIC."""
0006 
0007     homepage = "https://github.com/eic/eicd"
0008     url = "https://github.com/eic/eicd/archive/refs/tags/v0.2.0.tar.gz"
0009     git = "https://github.com/eic/eicd.git"
0010     list_url = "https://github.com/eic/eicd/tags"
0011 
0012     maintainers = ["wdconinc"]
0013 
0014     tags = ["eic"]
0015 
0016     version("master", branch="master")
0017     version(
0018         "2.0.0",
0019         sha256="06ac51559382b982a4f3556befd569db95927ff14058df0ae988944eff86de16",
0020     )
0021     version(
0022         "1.1.0",
0023         sha256="9a2f335ef292e1bff41a794fb8c953a75db5f45fef9b12628e4d35307251fb1d",
0024     )
0025     version(
0026         "1.0.0",
0027         sha256="40657274c3b486d0305ce88bb6fead139029bd14fe4bb1fdb663bca017c25126",
0028     )
0029     version(
0030         "0.9.0",
0031         sha256="80306b2fe41e7b49a465fdfd040faf957f508d90c243945751a72cae4fb7777d",
0032     )
0033     version(
0034         "0.8.0",
0035         sha256="f29f8db627064efeef5fa80b1ef628ca874a0aa94f7c2c97451870fd7439c101",
0036     )
0037     version(
0038         "0.7.0",
0039         sha256="2e378f2440d029e8f7e45165e3c7ec1063595b24b2de1e207bf09ce5b9531277",
0040     )
0041     version(
0042         "0.6.0",
0043         sha256="09d9d143bd242092ac2d5fa6f3918387c7f24d4b18230ef80eecff7861ce0929",
0044     )
0045     version(
0046         "0.5.0",
0047         sha256="b5a30166f036bb4519d546f16f32fd45e6574031190935705d24412ef259169e",
0048     )
0049     version(
0050         "0.2.0",
0051         sha256="7b59d6fb5df82ef495d5afe462958ddd7366fc0396dad3e9bf9dc276d7ec9b95",
0052     )
0053     version(
0054         "0.1.0",
0055         sha256="c82c771a384c8a252ed45562042f916807708e0f887e0d51be06f908c6003712",
0056     )
0057 
0058     variant(
0059         "cxxstd",
0060         default="17",
0061         values=("17", "20"),
0062         multi=False,
0063         description="Use the specified C++ standard when building.",
0064     )
0065 
0066     depends_on("cxx", type="build")
0067     depends_on("python", type="build")
0068     depends_on("cmake@3.3:", type="build")
0069     depends_on("py-jinja2", type="build")
0070     depends_on("py-pyyaml", type="build")
0071 
0072     depends_on("edm4hep@0.4.1:", when="@2:")
0073     depends_on("edm4hep@:0.4", when="@:1")
0074     depends_on("podio@0.14.1:", when="@2:")
0075     depends_on("podio@0.11.0:0.14.0", when="@:1")
0076     depends_on("root@6.08:")
0077 
0078     def cmake_args(self):
0079         args = []
0080         # C++ Standard
0081         args.append(
0082             self.define("CMAKE_CXX_STANDARD", self.spec.variants["cxxstd"].value)
0083         )
0084         return args