[redis-plus-plus] Add TLS feature and update to 1.3.9 (#32115)

* [redis-plus-plus] Add TLS feature and update to 1.3.9

* format-manifest
This commit is contained in:
Cheney Wang 2023-06-22 08:54:32 +08:00 committed by GitHub
parent 20b059fb8f
commit aa5e934ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 10 deletions

View File

@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sewenew/redis-plus-plus
REF 4368319fb668204f345da05b9dd79762506c67b6 # 1.3.8
SHA512 37774078fb98992c4b4be276c91a2b6a8b8810d62a5087184d1fa2c05db77de15058d5139747578f7a2f9219351c05de32740b63c153ea902493d4b5d05c2d68
REF "${VERSION}"
SHA512 a9afecc4059155137d524542e7ad699f78e5efc8b1136c1aac093e60fe70dddede3594afe6920f813ba011fb61740bec09b3564c8f8f42118e21fdd5f40f6161
HEAD_REF master
PATCHES
fix-conversion.patch
@ -10,6 +10,11 @@ vcpkg_from_github(
fix-absolute-path.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"tls" REDIS_PLUS_PLUS_USE_TLS
)
if("cxx17" IN_LIST FEATURES)
set(REDIS_PLUS_PLUS_CXX_STANDARD 17)
else()
@ -18,10 +23,10 @@ endif()
set(EXTRA_OPT "")
if ("async" IN_LIST FEATURES)
list(APPEND EXTRA_OPT -DREDIS_PLUS_PLUS_BUILD_ASYNC="libuv")
list(APPEND EXTRA_OPT "-DREDIS_PLUS_PLUS_BUILD_ASYNC=libuv")
endif()
if ("async-std" IN_LIST FEATURES)
list(APPEND EXTRA_OPT -DREDIS_PLUS_PLUS_ASYNC_FUTURE="std")
list(APPEND EXTRA_OPT "-DREDIS_PLUS_PLUS_ASYNC_FUTURE=std")
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" REDIS_PLUS_PLUS_BUILD_STATIC)
@ -31,7 +36,7 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DREDIS_PLUS_PLUS_USE_TLS=OFF
${FEATURE_OPTIONS}
-DREDIS_PLUS_PLUS_BUILD_STATIC=${REDIS_PLUS_PLUS_BUILD_STATIC}
-DREDIS_PLUS_PLUS_BUILD_SHARED=${REDIS_PLUS_PLUS_BUILD_SHARED}
-DREDIS_PLUS_PLUS_BUILD_TEST=OFF
@ -43,10 +48,12 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME redis++ CONFIG_PATH share/cmake/redis++)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,6 @@
{
"name": "redis-plus-plus",
"version-semver": "1.3.8",
"port-version": 1,
"version-semver": "1.3.9",
"description": "This is a C++ client for Redis. It's based on hiredis, and written in C++ 11",
"homepage": "https://github.com/sewenew/redis-plus-plus",
"license": "Apache-2.0",
@ -37,6 +36,18 @@
},
"cxx17": {
"description": "Build redis-plus-plus with cxx 17 standard"
},
"tls": {
"description": "Build with TLS support",
"dependencies": [
{
"name": "hiredis",
"default-features": false,
"features": [
"ssl"
]
}
]
}
}
}

View File

@ -7093,8 +7093,8 @@
"port-version": 0
},
"redis-plus-plus": {
"baseline": "1.3.8",
"port-version": 1
"baseline": "1.3.9",
"port-version": 0
},
"refl-cpp": {
"baseline": "0.12.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ce8c8a22b5a791c7a3a96d72d5e2ce47881db17c",
"version-semver": "1.3.9",
"port-version": 0
},
{
"git-tree": "6be6c4d075dc736952132603d31f0ca568a0edde",
"version-semver": "1.3.8",