Add ut (#37603)
This commit is contained in:
parent
0e2ff2dddb
commit
5ffbce275c
1 changed files with 43 additions and 0 deletions
43
var/spack/repos/builtin/packages/ut/package.py
Normal file
43
var/spack/repos/builtin/packages/ut/package.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class Ut(CMakePackage):
|
||||
"""UT: C++20 μ(micro)/Unit Testing Framework"""
|
||||
|
||||
homepage = "https://boost-ext.github.io/ut"
|
||||
url = "https://github.com/boost-ext/ut/archive/v0.0.0.tar.gz"
|
||||
git = "https://github.com/boost-ext/ut.git"
|
||||
|
||||
maintainers("msimberg")
|
||||
|
||||
version("master", branch="master")
|
||||
version("1.1.9", sha256="1a666513157905aa0e53a13fac602b5673dcafb04a869100a85cd3f000c2ed0d")
|
||||
|
||||
generator("ninja")
|
||||
|
||||
depends_on("cmake@3.21:3.25", type="build", when="@master")
|
||||
depends_on("cmake@3.12:3.20", type="build", when="@1.1.9")
|
||||
depends_on("ninja", type="build")
|
||||
|
||||
conflicts("%gcc@:8")
|
||||
conflicts("%clang@:8")
|
||||
conflicts("%clang@:10", when="platform=darwin")
|
||||
|
||||
# 1.1.9 had the version set to 1.1.8. See: https://github.com/boost-ext/ut/pull/492.
|
||||
patch(
|
||||
"https://github.com/boost-ext/ut/pull/492.patch?full_index=1",
|
||||
sha256="1858aefec7e6adbb6130bf32a0343f9ddd173182f9dba3eb3d30523e11d26987",
|
||||
when="@1.1.9",
|
||||
)
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
self.define("BOOST_UT_BUILD_BENCHMARKS", False),
|
||||
self.define("BOOST_UT_BUILD_EXAMPLES", False),
|
||||
self.define("BOOST_UT_BUILD_TESTS", self.run_tests),
|
||||
]
|
Loading…
Reference in a new issue