blob: 44dfe3b6417615f05300dae68eca1d245b0c0328 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 2013-2024 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 ByteLite(CMakePackage):
"""byte lite - A C++17-like byte type for C++98, C++11 and later
in a single-file header-only library"""
homepage = "https://github.com/martinmoene/byte-lite"
url = "https://github.com/martinmoene/byte-lite/archive/refs/tags/v0.3.0.tar.gz"
license("BSL-1.0", checked_by="pranav-sivaraman")
version("0.3.0", sha256="1a19e237b12bb098297232b0a74ec08c18ac07ac5ac6e659c1d5d8a4ed0e4813")
depends_on("cxx", type="build")
depends_on("cmake@3.5:", type="build")
conflicts("%gcc@:4.7")
conflicts("%clang@:3.4")
conflicts("%apple-clang@:5")
conflicts("%mvsc@:5")
def cmake_args(self):
return [self.define("BYTE_LITE_OPT_BUILD_TESTS", self.run_tests)]
|