summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAnthony J. Zukaitis <azukaitis@gmail.com>2021-03-31 22:35:00 -0600
committerGitHub <noreply@github.com>2021-03-31 22:35:00 -0600
commit1c084cd4dd93fd300827875b913b286105b8a2da (patch)
treedba9fd8e8d29cd876fd9724f4de884988f8814f8 /var
parent4f2a972c2fc4a515cd6bd17620e1f91898ec27b5 (diff)
downloadspack-1c084cd4dd93fd300827875b913b286105b8a2da.tar.gz
spack-1c084cd4dd93fd300827875b913b286105b8a2da.tar.bz2
spack-1c084cd4dd93fd300827875b913b286105b8a2da.tar.xz
spack-1c084cd4dd93fd300827875b913b286105b8a2da.zip
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>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpark-variant/package.py6
-rw-r--r--var/spack/repos/builtin/packages/mpark-variant/version.patch11
2 files changed, 15 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mpark-variant/package.py b/var/spack/repos/builtin/packages/mpark-variant/package.py
index 86f3cf3a4d..72bcc306da 100644
--- a/var/spack/repos/builtin/packages/mpark-variant/package.py
+++ b/var/spack/repos/builtin/packages/mpark-variant/package.py
@@ -9,8 +9,9 @@ from spack import *
class MparkVariant(CMakePackage):
"""C++17 `std::variant` for C++11/14/17"""
- homepage = "https://mpark.github.io/variant"
- url = "https://github.com/mpark/variant/archive/v1.3.0.tar.gz"
+ 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')
@@ -18,6 +19,7 @@ class MparkVariant(CMakePackage):
# 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'
diff --git a/var/spack/repos/builtin/packages/mpark-variant/version.patch b/var/spack/repos/builtin/packages/mpark-variant/version.patch
new file mode 100644
index 0000000000..56db93c87e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mpark-variant/version.patch
@@ -0,0 +1,11 @@
+--- ./CMakeLists.txt 2021-02-21 17:27:04.709115800 -0700
++++ ./CMakeLists.txt.new 2021-02-21 17:27:35.589115800 -0700
+@@ -7,7 +7,7 @@
+
+ cmake_minimum_required(VERSION 3.6.3)
+
+-project(MPark.Variant VERSION 1.3.0 LANGUAGES CXX)
++project(MPark.Variant VERSION 1.4.0 LANGUAGES CXX)
+
+ # Option.
+ set(MPARK_VARIANT_INCLUDE_TESTS "" CACHE STRING