git: 3edabe492c4d - main - www/cpr: Update to 1.10.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 16:00:46 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3edabe492c4d44a4b14a1ac3e699e488533ac393

commit 3edabe492c4d44a4b14a1ac3e699e488533ac393
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-10-16 15:18:14 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-10-16 15:59:42 +0000

    www/cpr: Update to 1.10.5
    
    Changes:        https://github.com/libcpr/cpr/releases
---
 www/cpr/Makefile                           | 25 ++++++++++++++++++++++---
 www/cpr/distinfo                           |  6 +++---
 www/cpr/files/patch-include-CMakeLists.txt | 15 ++++++++-------
 3 files changed, 33 insertions(+), 13 deletions(-)

diff --git a/www/cpr/Makefile b/www/cpr/Makefile
index 976525ff8b8d..6bf3a5d261bf 100644
--- a/www/cpr/Makefile
+++ b/www/cpr/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cpr
-PORTVERSION=	1.10.4
+PORTVERSION=	1.10.5
 CATEGORIES=	www
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -13,8 +13,27 @@ LIB_DEPENDS=	libcurl.so:ftp/curl
 
 USES=		cmake compiler:c++17-lang ssl
 
-CMAKE_OFF=	CPR_BUILD_TESTS CPR_BUILD_TESTS_PROXY CPR_BUILD_TESTS_SSL CPR_CURL_NOSIGNAL CPR_DEBUG_SANITIZER_FLAG_ADDR CPR_DEBUG_SANITIZER_FLAG_ALL CPR_DEBUG_SANITIZER_FLAG_LEAK CPR_DEBUG_SANITIZER_FLAG_THREAD CPR_DEBUG_SANITIZER_FLAG_UB CPR_ENABLE_CPPCHECK CPR_ENABLE_CURL_HTTP_ONLY CPR_ENABLE_LINTING CPR_GENERATE_COVERAGE CPR_USE_BOOST_FILESYSTEM CPR_USE_SYSTEM_GTEST CURL_VERBOSE_LOGGING
-CMAKE_ON=	BUILD_SHARED_LIBS BUILD_STATIC_LIBS CPR_ENABLE_SSL CPR_SKIP_CA_BUNDLE_SEARCH CPR_USE_SYSTEM_CURL
+CMAKE_OFF=	CPR_BUILD_TESTS \
+		CPR_BUILD_TESTS_PROXY \
+		CPR_BUILD_TESTS_SSL \
+		CPR_CURL_NOSIGNAL \
+		CPR_DEBUG_SANITIZER_FLAG_ADDR \
+		CPR_DEBUG_SANITIZER_FLAG_ALL \
+		CPR_DEBUG_SANITIZER_FLAG_LEAK \
+		CPR_DEBUG_SANITIZER_FLAG_THREAD \
+		CPR_DEBUG_SANITIZER_FLAG_UB \
+		CPR_ENABLE_CPPCHECK \
+		CPR_ENABLE_CURL_HTTP_ONLY \
+		CPR_ENABLE_LINTING \
+		CPR_GENERATE_COVERAGE \
+		CPR_USE_BOOST_FILESYSTEM \
+		CPR_USE_SYSTEM_GTEST \
+		CURL_VERBOSE_LOGGING
+CMAKE_ON=	BUILD_SHARED_LIBS \
+		BUILD_STATIC_LIBS \
+		CPR_ENABLE_SSL \
+		CPR_SKIP_CA_BUNDLE_SEARCH \
+		CPR_USE_SYSTEM_CURL
 PIE_UNSAFE=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
diff --git a/www/cpr/distinfo b/www/cpr/distinfo
index b7fd495b50d5..70537f718055 100644
--- a/www/cpr/distinfo
+++ b/www/cpr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1685162048
-SHA256 (libcpr-cpr-1.10.4_GH0.tar.gz) = 88462d059cd3df22c4d39ae04483ed50dfd2c808b3effddb65ac3b9aa60b542d
-SIZE (libcpr-cpr-1.10.4_GH0.tar.gz) = 131684
+TIMESTAMP = 1697463058
+SHA256 (libcpr-cpr-1.10.5_GH0.tar.gz) = c8590568996cea918d7cf7ec6845d954b9b95ab2c4980b365f582a665dea08d8
+SIZE (libcpr-cpr-1.10.5_GH0.tar.gz) = 132280
diff --git a/www/cpr/files/patch-include-CMakeLists.txt b/www/cpr/files/patch-include-CMakeLists.txt
index 6eef8b14961e..5f54bebf66b7 100644
--- a/www/cpr/files/patch-include-CMakeLists.txt
+++ b/www/cpr/files/patch-include-CMakeLists.txt
@@ -1,11 +1,12 @@
---- include/CMakeLists.txt.orig	2023-01-26 16:47:20 UTC
+--- include/CMakeLists.txt.orig	2023-10-14 12:45:47 UTC
 +++ include/CMakeLists.txt
-@@ -60,7 +60,7 @@ if(CPR_USE_BOOST_FILESYSTEM)
+@@ -60,9 +60,5 @@ if(CPR_USE_BOOST_FILESYSTEM)
    endif()
  endif()
  
--if (((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1) OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND NOT CPR_USE_BOOST_FILESYSTEM)
-+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1 AND NOT CPR_USE_BOOST_FILESYSTEM)
-     target_link_libraries(cpr PUBLIC stdc++fs)
- endif()
- 
+-if (((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1) OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT WIN32)) AND NOT CPR_USE_BOOST_FILESYSTEM)
+-    target_link_libraries(cpr PUBLIC stdc++fs)
+-endif()
+-
+ install(DIRECTORY cpr DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(DIRECTORY ${PROJECT_BINARY_DIR}/cpr_generated_includes/cpr DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})