2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 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)
|
|
|
|
|
2016-05-07 06:33:26 +08:00
|
|
|
from spack import *
|
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
class MsgpackC(CMakePackage):
|
2016-05-07 06:33:26 +08:00
|
|
|
"""A small, fast binary interchange format convertible to/from JSON"""
|
|
|
|
homepage = "http://www.msgpack.org"
|
2018-05-24 23:47:31 +08:00
|
|
|
url = "https://github.com/msgpack/msgpack-c/archive/cpp-3.0.1.tar.gz"
|
2016-05-07 06:33:26 +08:00
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('3.0.1', sha256='1b834ab0b5b41da1dbfb96dd4a673f6de7e79dbd7f212f45a553ff9cc54abf3b')
|
|
|
|
version('1.4.1', sha256='74324d696f9abb75d8a7cd5e77add5062592b7eac386c8102de78a6cc5309886')
|
2016-05-07 06:33:26 +08:00
|
|
|
|
2017-08-05 23:15:18 +08:00
|
|
|
depends_on('cmake@2.8.12:', type='build')
|
2018-09-04 09:25:17 +08:00
|
|
|
depends_on('googletest', type='test')
|
2017-11-17 00:28:40 +08:00
|
|
|
|
|
|
|
def cmake_args(self):
|
|
|
|
args = [
|
|
|
|
"-DCMAKE_CXX_FLAGS=-Wno-implicit-fallthrough",
|
2018-09-04 09:25:17 +08:00
|
|
|
"-DCMAKE_C_FLAGS=-Wno-implicit-fallthrough",
|
|
|
|
'-DMSGPACK_BUILD_TESTS:BOOL={0}'.format(
|
|
|
|
'ON' if self.run_tests else 'OFF')
|
2017-11-17 00:28:40 +08:00
|
|
|
]
|
|
|
|
return args
|