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 EicIp6(CMakePackage):
0005     """The Beamline at IP6 of the Electron-Ion Collider."""
0006 
0007     homepage = "https://github.com/eic/ip6"
0008     url = "https://github.com/eic/ip6/archive/refs/tags/v0.4.0.tar.gz"
0009     list_url = "https://github.com/eic/ip6/tags"
0010     git = "https://github.com/eic/ip6"
0011 
0012     maintainers = ["wdconinc"]
0013 
0014     tags = ["eic"]
0015 
0016     version("master", branch="master")
0017     version(
0018         "1.1.0",
0019         sha256="117da7f69acfcc94ae2c1b9dc196bee9577cc022a713b5893ad4329c0b787163",
0020     )
0021     version(
0022         "1.0.1",
0023         sha256="0605f577afaebe20a10292226eb1bbe2230fb6d12118a4553a8b0f3a3897d6d7",
0024     )
0025     version(
0026         "1.0.0",
0027         sha256="b3b2e9e4d389a59ba22b0131b81081f2255a5721a3447e71ab56103fc85c9bb4",
0028     )
0029     version(
0030         "0.6.2",
0031         sha256="00cd864e7a345500a1c026668282d469f3db148bb630a2e590e4d7ee22286258",
0032     )
0033     version(
0034         "0.6.1",
0035         sha256="058cc15c1813ea02e92af2c7cfaeb1fd5e7fc315a56d58d108ac3c5587d9ec1a",
0036     )
0037     version(
0038         "0.6.0",
0039         sha256="d081565b0376ee7a7bd2d20d60f3e7c045cd3e482a8d39040143653e8b362c27",
0040     )
0041     version(
0042         "0.5.2",
0043         sha256="d1a95ec0c1d432f3cd158e7c1c2baefe86438203292767304adf3467d4b54444",
0044     )
0045     version(
0046         "0.5.1",
0047         sha256="68ad5d44fff21d1e75c0c66ab26f7347dc7d5a227ca83ddbd30655861a49f18d",
0048     )
0049     version(
0050         "0.5.0",
0051         sha256="eab4ee7756532ee2991dbe3fbd4aa591f3dd506cd0b9a9c1d85581f9b04f3d2f",
0052     )
0053     version(
0054         "0.4.0",
0055         sha256="b59b99cbc1c772d1d3fe281bc424b8a59afb7a999467da7b554d479b6c5092be",
0056     )
0057 
0058     depends_on("cxx", type="build")
0059 
0060     depends_on("dd4hep +ddg4")
0061     depends_on("acts +dd4hep +tgeo")
0062     depends_on("root +gdml")
0063     depends_on("fmt")
0064 
0065     def setup_run_environment(self, env):
0066         env.prepend_path("LD_LIBRARY_PATH", self.prefix.lib)
0067         env.set("BEAMLINE_PATH", join_path(self.prefix.share, "ip6"))
0068         env.set("BEAMLINE", "ip6")
0069         env.set("BEAMLINE_VERSION", str(self.spec.version))
0070         env.set("BEAMLINE_CONFIG", "ip6")
0071         env.set("BEAMLINE_CONFIG_VERSION", str(self.spec.version))