spack/var/spack/repos/builtin/packages/mpark-variant/package.py
Anthony J. Zukaitis 1c084cd4dd
Added version patch for 1.4.0 tag on mpark-variant (#22496)
* Added version patch for 1.4.0 tag on mpark-variant

Redirected urls to git and github tags.

* Updated to commit hashes

* Update var/spack/repos/builtin/packages/mpark-variant/package.py

Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>

* Update var/spack/repos/builtin/packages/mpark-variant/package.py

Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>

* Update var/spack/repos/builtin/packages/mpark-variant/package.py

Co-authored-by: Anthony J Zukaitis <zukaitis@lanl.gov>
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2021-03-31 22:35:00 -06:00

35 lines
1.4 KiB
Python

# Copyright 2013-2021 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 MparkVariant(CMakePackage):
"""C++17 `std::variant` for C++11/14/17"""
homepage = "https://github.com/mpark/variant"
url = "https://github.com/mpark/variant/archive/v1.4.0.tar.gz"
git = "https://github.com/mpark/variant.git"
maintainers = ['ax3l']
version('1.4.0', sha256='8f6b28ab3640b5d76d5b6664dda7257a4405ce59179220431b8fd196c79b2ecb')
version('1.3.0', sha256='d0f7e41f818fcc839797a8017e76b8b66b323651c304cff641a83a56ae9943c6')
# Ref.: https://github.com/mpark/variant/pull/73
patch('nvcc.patch', when='@:1.4.0')
patch('version.patch', when='@1.4.0')
cxx11_msg = 'MPark.Variant needs a C++11-capable compiler. ' \
'See https://github.com/mpark/variant#requirements'
conflicts('%gcc@:4.7', msg=cxx11_msg)
conflicts('%clang@:3.5', msg=cxx11_msg)
conflicts('%gcc@7.3.1',
msg='GCC 7.3.1 has a bug that prevents using MPark.Variant. '
'See https://github.com/mpark/variant/issues/43 and '
'https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84785 '
'Please use a different compiler version or another '
'compiler.')