2023-01-19 06:30:17 +08:00
|
|
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2016-01-14 00:21:52 +08:00
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
class Cereal(CMakePackage):
|
2016-08-10 16:50:00 +08:00
|
|
|
"""cereal is a header-only C++11 serialization library. cereal takes
|
|
|
|
arbitrary data types and reversibly turns them into different
|
|
|
|
representations, such as compact binary encodings, XML, or
|
|
|
|
JSON. cereal was designed to be fast, light-weight, and easy to
|
|
|
|
extend - it has no external dependencies and can be easily bundled
|
|
|
|
with other code or used standalone.
|
|
|
|
|
|
|
|
"""
|
2022-07-31 06:19:18 +08:00
|
|
|
|
2021-09-02 14:46:27 +08:00
|
|
|
homepage = "https://uscilab.github.io/cereal/"
|
2022-04-11 16:19:48 +08:00
|
|
|
url = "https://github.com/USCiLab/cereal/archive/v1.3.2.tar.gz"
|
2022-07-31 06:19:18 +08:00
|
|
|
|
2022-04-11 16:19:48 +08:00
|
|
|
version("1.3.2", sha256="16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f")
|
|
|
|
version("1.3.1", sha256="65ea6ddda98f4274f5c10fb3e07b2269ccdd1e5cbb227be6a2fd78b8f382c976")
|
2020-06-25 12:00:06 +08:00
|
|
|
version("1.3.0", sha256="329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5")
|
2019-10-11 13:44:41 +08:00
|
|
|
version("1.2.2", sha256="1921f26d2e1daf9132da3c432e2fd02093ecaedf846e65d7679ddf868c7289c4")
|
|
|
|
version("1.2.1", sha256="7d321c22ea1280b47ddb06f3e9702fcdbb2910ff2f3df0a2554804210714434e")
|
|
|
|
version("1.2.0", sha256="1ccf3ed205a7a2f0d6a060415b123f1ae0d984cd4435db01af8de11a2eda49c1")
|
|
|
|
version("1.1.2", sha256="45607d0de1d29e84d03bf8eecf221eb2912005b63f02314fbade9fbabfd37b8d")
|
|
|
|
version("1.1.1", sha256="ec5e2b2c8f145d86eb7c079300360bb06f708527187834f3f127e9a12b07e9cf")
|
|
|
|
version("1.1.0", sha256="69113debdac9de561f499af4cf7755b2e8c3afa92649b8178b34a7c6bbe4f12f")
|
|
|
|
version("1.0.0", sha256="51c31c84d4c9e410e56d8bfc3424076b3234f11aa349ac8cda3db9f18118c125")
|
|
|
|
version("0.9.1", sha256="2a99722df9c3d0f75267f732808a4d7e564cb5a35318a3d1c00086e2ef139385")
|
2016-01-14 00:21:52 +08:00
|
|
|
|
2022-04-11 16:19:48 +08:00
|
|
|
patch("Boost.patch", when="@:1.3.0")
|
|
|
|
patch("Boost2.patch", when="@1.2.2:1.3.0")
|
2017-03-21 04:05:02 +08:00
|
|
|
patch("pointers.patch")
|
2020-10-10 00:17:11 +08:00
|
|
|
# fixed in HEAD but not released yet
|
2022-04-11 16:19:48 +08:00
|
|
|
patch("LockGuard-default-ctor.patch", when="@:1.3.0")
|
2016-01-14 00:21:52 +08:00
|
|
|
|
2016-03-09 23:46:56 +08:00
|
|
|
depends_on("cmake@2.6.2:", type="build")
|
2022-04-11 16:19:48 +08:00
|
|
|
depends_on("cmake@3.6.0:", when="@1.3.0:", type="build")
|
2016-01-14 00:21:52 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
def cmake_args(self):
|
2016-01-14 00:21:52 +08:00
|
|
|
# Boost is only used for self-tests, which we are not running (yet?)
|
2017-08-05 23:15:18 +08:00
|
|
|
return [
|
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE",
|
|
|
|
"-DSKIP_PORTABILITY_TEST=TRUE",
|
2017-09-21 21:10:51 +08:00
|
|
|
"-DJUST_INSTALL_CEREAL=On",
|
|
|
|
"-DWITH_WERROR=Off",
|
2017-08-05 23:15:18 +08:00
|
|
|
]
|