File indexing completed on 2025-01-18 09:15:26
0001
0002
0003
0004
0005
0006 from spack.package import *
0007
0008
0009 class EicSmear(CMakePackage):
0010 """Monte Carlo analysis package originally
0011 developed by the BNL EIC task force."""
0012
0013 homepage = "https://wiki.bnl.gov/eic/index.php/Monte_Carlo_and_Smearing"
0014 url = "https://github.com/eic/eic-smear/archive/1.0.4.tar.gz"
0015 list_url = "https://github.com/eic/eic-smear/releases"
0016 git = "https://github.com/eic/eic-smear.git"
0017
0018 maintainers = ["wdconinc"]
0019
0020 tags = ["eic"]
0021
0022 variant("pythia6", default=False, description="Include Pythia6 support")
0023
0024 version("master", branch="master")
0025 version(
0026 "1.1.12", sha256="9f95bbdd8bfffc2082ead67d17d240f0c057559e8727607bd42fef72257fa85c",
0027 )
0028 version(
0029 "1.1.11", sha256="0cffcecd139af3a2604a756ded2f9ccdefecfbe045a07766cf3c62c455de30b0",
0030 )
0031 version(
0032 "1.1.10",
0033 sha256="2a5866166299f216528bf1e9a7177faa0fca849cb8b20b64e08107c828059c3b",
0034 )
0035 version(
0036 "1.1.9",
0037 sha256="a469455f44d8fc9abd7475cbf5ca2bad7f235b09d81f1fe41485d7fcca177080",
0038 )
0039 version(
0040 "1.1.8",
0041 sha256="93c991dcd5fda8490901cb6c75badfa0198d0b7e05c8637d9832f352e4b285c0",
0042 )
0043 version(
0044 "1.1.7",
0045 sha256="a026002303148f00374f8597cd99274371030697dee81d910331d3bb8074bb80",
0046 )
0047 version(
0048 "1.1.4",
0049 sha256="bfa9304301b83b2f1c3e355ad1bce50036f0bc93289f1510665cc4cb31a48601",
0050 )
0051 version(
0052 "1.1.3",
0053 sha256="61561da2483775b9aba22bfea8b99bdd073f3fa222bdf4297ca9bab6c44e29d9",
0054 )
0055 version(
0056 "1.1.2",
0057 sha256="bc5eabec74786be3bebf9d61bb2ee3e56dcafe9b457b00c9a85bc89f1d1f9cd0",
0058 )
0059 version(
0060 "1.1.1",
0061 sha256="9c0f1162229e42f6f98213e49326d6279e42318726560989b05335db002a5854",
0062 )
0063 version(
0064 "1.1.0",
0065 sha256="9d2c37e389c588208c16c93aac0e6f5f36a141f4dbab07d2ced1c71e19378ef3",
0066 )
0067 version(
0068 "1.0.4-fix1",
0069 sha256="ae312f4440b7ec5eeda75631bea209d733186199eaa3cd76c757ba1337679392",
0070 )
0071 version(
0072 "1.0.4",
0073 sha256="7d12a1d8b1c490502cd73737e1ce264880b04e74c16ee3b27cabad371c5b9e73",
0074 )
0075 version(
0076 "1.0.3",
0077 sha256="74b0e7a690b8fe81eb2e2ea78f96cb75aadca1c8b08450e89a7ebf8963a4d44c",
0078 )
0079 version(
0080 "1.0.2",
0081 sha256="5f33b8ba75120918023be458d9fb0f138e1d41dd37ca7107d3aa6e0ab51b691c",
0082 )
0083 version(
0084 "1.0.1",
0085 sha256="60b4222e41c6cf5c9cbb30c85e388ce06f1e585c5a970d34ef4d1394c058ccdc",
0086 )
0087 version(
0088 "1.0.0",
0089 sha256="be994c94b5b665f3802723a51e5983a0d9221ca3b13138146d68ba48eb0b2d93",
0090 )
0091
0092 depends_on("cxx", type="build")
0093 depends_on("cmake", type="build")
0094
0095 depends_on("root +pythia6", when="+pythia6")
0096 depends_on("root", when="-pythia6")
0097 depends_on("zlib")
0098 depends_on("hepmc3")
0099 depends_on("pythia6", when="+pythia6")
0100
0101 conflicts(
0102 "-pythia6",
0103 when="@1.1.0-rc1",
0104 msg="eic-smear@1.1.0-rc1 cannot be built without pythia6.",
0105 )
0106
0107 def cmake_args(self):
0108 args = []
0109
0110 args.append(
0111 "-DCMAKE_CXX_STANDARD=%s" % self.spec["root"].variants["cxxstd"].value
0112 )
0113 if "+pythia6" in self.spec.variants:
0114 args.append("-DPYTHIA6_LIBDIR={0}".format(self.spec["pythia6"].prefix.lib))
0115
0116 return args