summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJacob Merson <jacob@jacobmerson.com>2020-04-10 10:35:36 -0400
committerGitHub <noreply@github.com>2020-04-10 09:35:36 -0500
commitd0fbe1add212771199289e64872fe2aaa52ecf72 (patch)
treedd941b303ddaf4f6c00a2415650b54a6418d2008 /var
parent0d96e8a27d13166049bb9280e2e270a568fe9759 (diff)
downloadspack-d0fbe1add212771199289e64872fe2aaa52ecf72.tar.gz
spack-d0fbe1add212771199289e64872fe2aaa52ecf72.tar.bz2
spack-d0fbe1add212771199289e64872fe2aaa52ecf72.tar.xz
spack-d0fbe1add212771199289e64872fe2aaa52ecf72.zip
Update yaml-cpp package to enable for build of old api (#15983)
The old api is found in version 0.3.0 which uses a different release name, so the url function was updated to properly find the older releases. Also, this removes the boost constraint on the 0.3.0 version which does not need it.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/yaml-cpp/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/yaml-cpp/package.py b/var/spack/repos/builtin/packages/yaml-cpp/package.py
index 3679b571d8..11f1f9fbef 100644
--- a/var/spack/repos/builtin/packages/yaml-cpp/package.py
+++ b/var/spack/repos/builtin/packages/yaml-cpp/package.py
@@ -20,6 +20,7 @@ class YamlCpp(CMakePackage):
version('0.6.3', sha256='77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed')
version('0.6.2', sha256='e4d8560e163c3d875fd5d9e5542b5fd5bec810febdcba61481fe5fc4e6b1fd05')
version('0.5.3', sha256='decc5beabb86e8ed9ebeb04358d5363a5c4f72d458b2c788cb2f3ac9c19467b2')
+ version('0.3.0', sha256='ab8d0e07aa14f10224ed6682065569761f363ec44bc36fcdb2946f6d38fe5a89')
variant('shared', default=True,
description='Enable build of shared libraries')
@@ -30,7 +31,7 @@ class YamlCpp(CMakePackage):
variant('tests', default=False,
description='Build yaml-cpp tests using internal gtest')
- depends_on('boost@:1.66.99', when='@:0.5.3')
+ depends_on('boost@:1.66.99', when='@0.5.0:0.5.3')
conflicts('%gcc@:4.7', when='@0.6.0:', msg="versions 0.6.0: require c++11 support")
conflicts('%clang@:3.3.0', when='@0.6.0:', msg="versions 0.6.0: require c++11 support")
@@ -76,3 +77,10 @@ class YamlCpp(CMakePackage):
])
return options
+
+ def url_for_version(self, version):
+ url = "https://github.com/jbeder/yaml-cpp/archive/{0}-{1}.tar.gz"
+ if version < Version('0.5.3'):
+ return url.format('release', version)
+ else:
+ return url.format('yaml-cpp', version)