tinycbor: new package (#47623)

This commit is contained in:
Pranav Sivaraman 2024-11-18 14:19:14 -05:00 committed by GitHub
parent 97406f241c
commit e3c0515076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,27 @@
# 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 Tinycbor(MakefilePackage):
"""Concise Binary Object Representation (CBOR) Library"""
homepage = "https://github.com/intel/tinycbor"
url = "https://github.com/intel/tinycbor/archive/refs/tags/v0.6.0.tar.gz"
license("MIT", checked_by="pranav-sivaraman")
version("0.6.0", sha256="512e2c9fce74f60ef9ed3af59161e905f9e19f30a52e433fc55f39f4c70d27e4")
depends_on("c", type="build")
depends_on("cxx", type="build")
build_targets = ["CC=cc", "CXX=cxx"]
@property
def install_targets(self):
return ["install", f"prefix={self.prefix}"]