summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLoïc Pottier <48072795+lpottier@users.noreply.github.com>2022-11-30 11:18:47 -0800
committerGitHub <noreply@github.com>2022-11-30 11:18:47 -0800
commit472074cb7c373758c30532b43270b2970ad9b17a (patch)
tree97d892cf5e871e54a76241e85ed79b817acd7cf1 /var
parent45c8d7f457aedc5f471eaa80a469b1a9155dd3f9 (diff)
downloadspack-472074cb7c373758c30532b43270b2970ad9b17a.tar.gz
spack-472074cb7c373758c30532b43270b2970ad9b17a.tar.bz2
spack-472074cb7c373758c30532b43270b2970ad9b17a.tar.xz
spack-472074cb7c373758c30532b43270b2970ad9b17a.zip
redis-plus-plus: newer version and added TLS support (#34197)
Signed-off-by: Loïc Pottier <pottier1@llnl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/redis-plus-plus/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/redis-plus-plus/package.py b/var/spack/repos/builtin/packages/redis-plus-plus/package.py
index dacb047aa3..1b9e934b6f 100644
--- a/var/spack/repos/builtin/packages/redis-plus-plus/package.py
+++ b/var/spack/repos/builtin/packages/redis-plus-plus/package.py
@@ -30,13 +30,18 @@ class RedisPlusPlus(CMakePackage):
description="Use Position Independent Code (-fPIC) to build the static library",
)
variant("test", default=False, description="Builds test suite")
+ variant("tls", default=False, description="Builds with TLS support")
version("1.3.6", sha256="87dcadca50c6f0403cde47eb1f79af7ac8dd5a19c3cad2bb54ba5a34f9173a3e")
version("1.3.5", sha256="a49a72fef26ed39d36a278fcc4e4d92822e111697b5992d8f26f70d16edc6c1f")
version("1.3.4", sha256="b9f2b3e0f084fe9a7360e44a9ae28aa42067fbaf027734989c778865c2d5dca5")
depends_on("cmake@3.18:", type="build")
- depends_on("hiredis@0.14.1:", type=("build", "run", "link"))
+ depends_on("hiredis@1.0.0:", type=("build", "link"))
+ depends_on("hiredis@1.0.0:+ssl", type=("build", "link"), when="+tls")
+ depends_on("openssl@1.1:", type=("build", "link"), when="+tls")
+
+ conflicts("+tls", when="+static", msg="Static libraries cannot be built with TLS support.")
def cmake_args(self):
@@ -45,6 +50,7 @@ class RedisPlusPlus(CMakePackage):
args = [
self.define("REDIS_PLUS_PLUS_CXX_STANDARD", cxxstd),
+ self.define_from_variant("REDIS_PLUS_PLUS_USE_TLS", "tls"),
self.define_from_variant("REDIS_PLUS_PLUS_BUILD_TEST", "test"),
self.define_from_variant("REDIS_PLUS_PLUS_BUILD_STATIC", "static"),
self.define_from_variant("REDIS_PLUS_PLUS_BUILD_SHARED", "shared"),