Back to home page

EIC code displayed by LXR

 
 

    


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

0001 from spack.package import *
0002 
0003 
0004 class Npdet(CMakePackage):
0005     """Nuclear Physics Detector library."""
0006 
0007     homepage = "https://eicweb.phy.anl.gov/EIC/NPDet"
0008     url = "https://eicweb.phy.anl.gov/EIC/NPDet/-/archive/v0.5.0/NPDet-v0.5.0.tar.gz"
0009     list_url = "https://eicweb.phy.anl.gov/EIC/NPDet/-/tags"
0010     git = "https://eicweb.phy.anl.gov/EIC/NPDet"
0011 
0012     maintainers = ["wdconinc"]
0013 
0014     tags = ["eic"]
0015 
0016     version("master", branch="master")
0017     version(
0018         "1.4.1",
0019         sha256="adc7a534da912aa0c037dcb2eea981990c3b1d3f59772a9dd08b8995c8df9f18",
0020     )
0021     version(
0022         "1.4.0",
0023         sha256="f10e6446fdc5f499bec3d59e0cebdbfc24dd63c5317974a589cc251475dfe0da",
0024     )
0025     version(
0026         "1.3.2",
0027         sha256="5b03cb266edf48806559ca29602038f841b4121aa875d1eb8341e387cb00d280",
0028     )
0029     version(
0030         "1.3.1",
0031         sha256="7c4bbc74d50bdfd21982456c1a95c5f3b7ef8acbf4d351c894736e46f5084aad",
0032     )
0033     version(
0034         "1.3.0",
0035         sha256="4280234bbad746ebcd2bb67085893d5c9caaab2505d7a8b5c8b7ad7fb0ab8ef2",
0036     )
0037     version(
0038         "1.2.4",
0039         sha256="5963d520f66242a49e9530eb60e20a309971a9eae2ff420fb9c639a0adbb649a",
0040     )
0041     version(
0042         "1.2.3",
0043         sha256="8736eedb8d43fdc0dfdf6b556a371fd47ad1192dd8a7c39f8f206bbdbeace591",
0044     )
0045     version(
0046         "1.2.2",
0047         sha256="96df677ec1b0e411bd20d22950bddc84622b9bab006b70ac545e32040df57dbd",
0048     )
0049     version(
0050         "1.2.1",
0051         sha256="814a601c0c05336ce1ebc44d514dd3b92c6b7fc3c21bbfa94352073e7b21da6b",
0052     )
0053     version(
0054         "1.2.0",
0055         sha256="117e307765e6554d4ad61c70d09991053ad4e88fc9d274264b40d512bd92ec04",
0056     )
0057     version(
0058         "1.1.0",
0059         sha256="0623684a153075c37ee4a2a66de89db12715e70c4a326ff4533eea67d2db6a95",
0060     )
0061     version(
0062         "1.0.0",
0063         sha256="e0522dd2a6c163367e8ad4bc12ba9ad5a58d99ea151192df3ab48228a754b490",
0064     )
0065     version(
0066         "0.9.0",
0067         sha256="0cb0e6e39956c6751b00d53e7d44007e71c41728ee97bc785664f2416fe051f4",
0068     )
0069     version(
0070         "0.8.0",
0071         sha256="89cec16c44e9ac3b009d2fbf3817b0df7dabafe1a34b0b0160183a6431a6fbed",
0072     )
0073     version(
0074         "0.7.0",
0075         sha256="d842d5571960316e76530849fa03296dc270d90da48d557bf4bd2c358538eefe",
0076     )
0077     version(
0078         "0.6.0",
0079         sha256="0b1adbb3aff5d8b8ef9c6e81ec63721bdf12f4c457465bfd584ddeba63161edd",
0080     )
0081     version(
0082         "0.5.0",
0083         sha256="2ff4cd7992b7c18c25da64aa2d6223c210ea50c5ce90bcb007c0346cb4aee2c5",
0084     )
0085 
0086     variant("http", default=False, description="Build web display services")
0087     variant("geocad", default=False, description="Build the geocad interface")
0088 
0089     depends_on("cxx", type="build")
0090 
0091     depends_on("fmt +shared")
0092     depends_on("acts")
0093     depends_on("eigen")
0094     depends_on("root")
0095     depends_on("podio")
0096     depends_on("py-pyyaml", type="build")
0097     depends_on("py-jinja2", type="build")
0098     depends_on("spdlog")
0099     depends_on("root +http", when="+http")
0100     depends_on("dd4hep +ddg4")
0101     depends_on("dd4hep@1.18:", when="@1.2.2:")
0102     depends_on("opencascade", when="+geocad")
0103     depends_on("py-six")
0104 
0105     conflicts("-http", when="@:0.5.8", msg="NPDet pre-0.5.8 requires http")
0106 
0107     def cmake_args(self):
0108         args = [self.define_from_variant("USE_GEOCAD", "geocad")]
0109         args.append("-DCMAKE_CXX_STANDARD=17")
0110         return args