Back to home page

EIC code displayed by LXR

 
 

    


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

0001 # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
0002 # Spack Project Developers. See the top-level COPYRIGHT file for details.
0003 #
0004 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 
0006 from spack.package import *
0007 
0008 
0009 class Eictoymodel(CMakePackage):
0010     """EicToyModel (ETM) is a C++ ROOT-based software suite
0011     for EIC Central Detector configuration purposes."""
0012 
0013     homepage = "https://github.com/eic/EicToyModel"
0014     url = "https://github.com/eic/EicToyModel/archive/v1.0.0.tar.gz"
0015     list_url = "https://github.com/eic/EicToyModel/releases"
0016     git = "https://github.com/eic/EicToyModel.git"
0017 
0018     maintainer = ["wdconinc"]
0019 
0020     tags = ["eic"]
0021 
0022     version("master", branch="master")
0023     version(
0024         "1.0.0",
0025         sha256="633b3566c7c24af970a0ccb2487207a9f9b43ab84404ccead95ffd30f21a8b94",
0026     )
0027 
0028     depends_on("cxx", type="build")
0029 
0030     depends_on("opencascade")
0031     depends_on("root")
0032     depends_on("vgm")
0033 
0034     def cmake_args(self):
0035         args = []
0036         # C++ Standard
0037         args.append(
0038             "-DCMAKE_CXX_STANDARD=%s" % self.spec["root"].variants["cxxstd"].value
0039         )
0040         args.append("-DOPENCASCADE=%s" % self.spec["opencascade"].prefix)
0041         return args