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>
This commit is contained in:
parent
9888683a21
commit
9b2cd1b208
23
var/spack/repos/builtin/packages/yyjson/package.py
Normal file
23
var/spack/repos/builtin/packages/yyjson/package.py
Normal file
@ -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)]
|
Loading…
Reference in New Issue
Block a user