File indexing completed on 2025-01-18 09:15:26
0001
0002
0003
0004
0005
0006 from spack.package import *
0007
0008
0009 class Eicroot(CMakePackage):
0010 """EicRoot software framework"""
0011
0012 homepage = "https://github.com/eic/EicRoot"
0013 url = "https://github.com/eic/EicRoot/archive/v2.0.0.tar.gz"
0014 list_url = "https://github.com/eic/EicRoot/releases"
0015 git = "https://github.com/eic/EicRoot.git"
0016
0017 maintainer = ["wdconinc"]
0018
0019 tags = ["eic"]
0020
0021 version(
0022 "2.0.0",
0023 sha256="94cd28763ef99832efd619f47c9b5b000d31a445e940e6c8204a373ade7d6334",
0024 )
0025
0026 depends_on("cxx", type="build")
0027
0028 depends_on("root@6.18.04: -vmc")
0029 depends_on("geant3-vmc")
0030 depends_on("geant4-vmc")
0031
0032 patch("eic-htc-libgeant321.patch", when="@:2.0.0")
0033
0034 def patch(self):
0035
0036 filter_file("__USE_BSD", "__USE_MISC", "dbase/dbValidation/ValTimeStamp.cxx")
0037
0038 def cmake_args(self):
0039 spec = self.spec
0040
0041 args = []
0042
0043 args.append(
0044 "-DCMAKE_CXX_STANDARD=%s" % self.spec["root"].variants["cxxstd"].value
0045 )
0046
0047
0048
0049
0050 args.append("-DG3VMC={0}".format(spec["geant3-vmc"].prefix))
0051 args.append("-DG4VMC={0}".format(spec["geant4-vmc"].prefix))
0052 args.append("-DCAD2ROOT=no")
0053 args.append("-DHTC=no")
0054
0055 return args