diff options
-rw-r--r-- | var/spack/repos/builtin/packages/yyjson/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/yyjson/package.py b/var/spack/repos/builtin/packages/yyjson/package.py new file mode 100644 index 0000000000..d15bd85117 --- /dev/null +++ b/var/spack/repos/builtin/packages/yyjson/package.py @@ -0,0 +1,23 @@ +# 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 Yyjson(CMakePackage): + """The fastest JSON library in C""" + + homepage = "https://ibireme.github.io/yyjson/doc/doxygen/html/" + url = "https://github.com/ibireme/yyjson/archive/refs/tags/0.10.0.tar.gz" + + license("MIT", checked_by="pranav-sivaraman") + + version("0.10.0", sha256="0d901cb2c45c5586e3f3a4245e58c2252d6b24bf4b402723f6179523d389b165") + + depends_on("c", type="build") + depends_on("cxx", type="build") # TODO: test only dependency, but does not work + + def cmake_args(self): + return [self.define("YYJSON_BUILD_TESTS", self.run_tests)] |