blob: 3ee53e9fedfc428709eccb5a88ea2d62c1a9bb46 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 2013-2020 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 import *
class Xeus(CMakePackage):
"""QuantStack C++ implementation of Jupyter kernel protocol"""
homepage = "https://xeus.readthedocs.io/en/latest/"
url = "https://github.com/QuantStack/xeus/archive/0.14.1.tar.gz"
git = "https://github.com/QuantStack/xeus.git"
version('develop', branch='master')
version('0.15.0', sha256='bc99235b24d5757dc129f3ed531501fb0d0667913927ed39ee24281952649183')
version('0.14.1', sha256='a6815845d4522ec279f142d3b4e92ef52cd80847b512146a65f256a77e058cfe')
variant('examples', default=False, description="Build examples")
conflicts('%gcc@:4.8')
conflicts('%clang@:3.6')
conflicts('%intel@:17')
depends_on('libzmq@4.2.5:-libsodium')
depends_on('cppzmq@4.3.0:')
depends_on('cryptopp@7.0.0:')
depends_on('xtl@0.4.0:')
depends_on('nlohmann-json@3.2.0', when='@develop,0.15.0:')
depends_on('nlohmann-json@3.1.1', when='@0.14.1')
depends_on('uuid')
# finds cryptopp not built with cmake, removes c++17 attribute
# in check_cxx_source_compiles
patch('cmake_find_cryptopp_and_check_cxx_compatibility.patch')
def cmake_args(self):
args = [
'-DBUILD_EXAMPLES:BOOL=%s' % (
'ON' if '+examples' in self.spec else 'OFF')
]
return args
|