Arbor: version added: v0.9.0 (#39374)
This commit is contained in:
parent
e67dca73d1
commit
af38d097ac
1 changed files with 21 additions and 9 deletions
|
@ -13,26 +13,32 @@ class Arbor(CMakePackage, CudaPackage):
|
|||
homepage = "https://arbor-sim.org"
|
||||
git = "https://github.com/arbor-sim/arbor.git"
|
||||
url = "https://github.com/arbor-sim/arbor/releases/download/v0.8.1/arbor-v0.8.1-full.tar.gz"
|
||||
maintainers("bcumming", "brenthuisman", "haampie", "schmitts")
|
||||
maintainers = ["thorstenhater", "brenthuisman"]
|
||||
|
||||
version("master", branch="master", submodules=True)
|
||||
version("master", branch="master")
|
||||
version("develop")
|
||||
version(
|
||||
"0.9.0",
|
||||
sha256="5f9740955c821aca81e23298c17ad64f33f635756ad9b4a0c1444710f564306a",
|
||||
url="https://github.com/arbor-sim/arbor/releases/download/v0.9.0/arbor-v0.9.0-full.tar.gz",
|
||||
)
|
||||
version(
|
||||
"0.8.1",
|
||||
sha256="caebf96676ace6a9c50436541c420ca4bb53f0639dcab825de6fa370aacf6baa",
|
||||
url="https://github.com/arbor-sim/arbor/releases/download/v0.8.1/arbor-v0.8.1-full.tar.gz",
|
||||
)
|
||||
version(
|
||||
"0.8",
|
||||
"0.8.0",
|
||||
sha256="18df5600308841616996a9de93b55a105be0f59692daa5febd3a65aae5bc2c5d",
|
||||
url="https://github.com/arbor-sim/arbor/releases/download/v0.8/arbor-v0.8-full.tar.gz",
|
||||
)
|
||||
version(
|
||||
"0.7",
|
||||
"0.7.0",
|
||||
sha256="c3a6b7193946aee882bb85f9c38beac74209842ee94e80840968997ba3b84543",
|
||||
url="https://github.com/arbor-sim/arbor/releases/download/v0.7/arbor-v0.7-full.tar.gz",
|
||||
)
|
||||
version(
|
||||
"0.6",
|
||||
"0.6.0",
|
||||
sha256="4cd333b18effc8833428ddc0b99e7dc976804771bc85da90034c272c7019e1e8",
|
||||
url="https://github.com/arbor-sim/arbor/releases/download/v0.6/arbor-v0.6-full.tar.gz",
|
||||
)
|
||||
|
@ -68,8 +74,9 @@ class Arbor(CMakePackage, CudaPackage):
|
|||
# misc dependencies
|
||||
depends_on("fmt@7.1:", when="@0.5.3:") # required by the modcc compiler
|
||||
depends_on("fmt@9.1:", when="@0.7.1:")
|
||||
depends_on("googletest@1.12.1", when="@0.7.1:")
|
||||
depends_on("pugixml@1.11:", when="@0.7.1:")
|
||||
depends_on("nlohmann-json")
|
||||
depends_on("nlohmann-json@3.11.2")
|
||||
depends_on("random123")
|
||||
with when("+cuda"):
|
||||
depends_on("cuda@10:")
|
||||
|
@ -84,9 +91,9 @@ class Arbor(CMakePackage, CudaPackage):
|
|||
depends_on("python@3.7:", when="+python", type=("build", "run"))
|
||||
depends_on("py-numpy", when="+python", type=("build", "run"))
|
||||
with when("+python"):
|
||||
depends_on("py-pybind11@2.6:", type=("build"))
|
||||
depends_on("py-pybind11@2.8.1:", when="@0.5.3:", type=("build"))
|
||||
depends_on("py-pybind11@2.10.1:", when="@0.7.1:", type=("build"))
|
||||
depends_on("py-pybind11@2.6:", type="build")
|
||||
depends_on("py-pybind11@2.8.1:", when="@0.5.3:", type="build")
|
||||
depends_on("py-pybind11@2.10.1:", when="@0.7.1:", type="build")
|
||||
|
||||
# sphinx based documentation
|
||||
depends_on("python@3.7:", when="+doc", type="build")
|
||||
|
@ -117,3 +124,8 @@ def cmake_args(self):
|
|||
args.append("-DARB_CXX_FLAGS_TARGET=" + opt_flags)
|
||||
|
||||
return args
|
||||
|
||||
@run_after("install", when="+python")
|
||||
@on_package_attributes(run_tests=True)
|
||||
def install_test(self):
|
||||
python("-c", "import arbor")
|
||||
|
|
Loading…
Reference in a new issue