diff options
author | Pranav Sivaraman <pranavsivaraman@gmail.com> | 2024-11-14 14:01:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 11:01:21 -0800 |
commit | 9b2cd1b2084b5869eaa089e32af5a57b67f87d71 (patch) | |
tree | 92b2fb3b69931c35c2e607d8b898efdfeee27991 | |
parent | 9888683a21c5f0ec0301c6e06d32d9c8204d0592 (diff) | |
download | spack-9b2cd1b2084b5869eaa089e32af5a57b67f87d71.tar.gz spack-9b2cd1b2084b5869eaa089e32af5a57b67f87d71.tar.bz2 spack-9b2cd1b2084b5869eaa089e32af5a57b67f87d71.tar.xz spack-9b2cd1b2084b5869eaa089e32af5a57b67f87d71.zip |
yyjson: new package (#47563)
* yyjson: new package
* [@spackbot] updating style on behalf of pranav-sivaraman
---------
Co-authored-by: pranav-sivaraman <pranav-sivaraman@users.noreply.github.com>
-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)] |