diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-06-22 05:23:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 14:23:26 -0700 |
| commit | 44fd9d8c327aee1cd08f6121216a0385beabc97a (patch) | |
| tree | e7e2348729989729f0dc4bfe81ae0edec076f383 | |
| parent | a025c1b0458c08150b6da44ebdd9f0f9e0873d07 (diff) | |
| download | vcpkg-44fd9d8c327aee1cd08f6121216a0385beabc97a.tar.gz vcpkg-44fd9d8c327aee1cd08f6121216a0385beabc97a.zip | |
[cpr] Update to 1.6.2 (#18386)
* [cpr] Update to 1.6.2
* Update version files
* Update patch
* Update verison files
* Update ports/cpr/portfile.cmake
* Update versions/c-/cpr.json
* Fix build error on uwp
* Update versions/c-/cpr.json
* Add condition for uwp patch
* Update versions/c-/cpr.json
* Update ports/cpr/portfile.cmake
* Update versions/c-/cpr.json
| -rw-r--r-- | ports/cpr/001-cpr-config.patch | 7 | ||||
| -rw-r--r-- | ports/cpr/CONTROL | 5 | ||||
| -rw-r--r-- | ports/cpr/enable-install.patch | 17 | ||||
| -rw-r--r-- | ports/cpr/fix-uwp.patch | 13 | ||||
| -rw-r--r-- | ports/cpr/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/cpr/vcpkg.json | 12 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/c-/cpr.json | 5 |
8 files changed, 43 insertions, 31 deletions
diff --git a/ports/cpr/001-cpr-config.patch b/ports/cpr/001-cpr-config.patch index 8da445975..0b972c9b0 100644 --- a/ports/cpr/001-cpr-config.patch +++ b/ports/cpr/001-cpr-config.patch @@ -1,8 +1,8 @@ diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt -index 563b785..20f8a54 100644 +index 8061a14..e8daf19 100644 --- a/cpr/CMakeLists.txt +++ b/cpr/CMakeLists.txt -@@ -20,6 +20,7 @@ add_library(cpr +@@ -21,6 +21,7 @@ add_library(cpr add_library(cpr::cpr ALIAS cpr) @@ -10,7 +10,7 @@ index 563b785..20f8a54 100644 target_link_libraries(cpr PUBLIC CURL::libcurl) # todo should be private, but first dependencys in ssl_options need to be removed # Set version for shared libraries. -@@ -28,4 +29,18 @@ set_target_properties(cpr +@@ -29,4 +30,18 @@ set_target_properties(cpr VERSION ${${PROJECT_NAME}_VERSION} SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR}) @@ -30,4 +30,3 @@ index 563b785..20f8a54 100644 +if (NOT DISABLE_INSTALL_HEADERS) + install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../include/cpr DESTINATION include) +endif() -\ No newline at end of file diff --git a/ports/cpr/CONTROL b/ports/cpr/CONTROL deleted file mode 100644 index 3a2984ce2..000000000 --- a/ports/cpr/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: cpr -Version: 1.5.2 -Homepage: https://github.com/whoshuu/cpr -Description: C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project. -Build-Depends: curl[core] diff --git a/ports/cpr/enable-install.patch b/ports/cpr/enable-install.patch deleted file mode 100644 index 250199e5a..000000000 --- a/ports/cpr/enable-install.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt -index a6db5bd..b4982d1 100644 ---- a/cpr/CMakeLists.txt -+++ b/cpr/CMakeLists.txt -@@ -45,3 +45,12 @@ add_library(${CPR_LIBRARIES} - message(STATUS "Using CURL_LIBRARIES: ${CURL_LIBRARIES}.") - target_link_libraries(${CPR_LIBRARIES} - ${CURL_LIBRARIES}) -+ -+install(TARGETS ${CPR_LIBRARIES} -+ RUNTIME DESTINATION bin -+ LIBRARY DESTINATION lib -+ ARCHIVE DESTINATION lib -+) -+if(NOT DISABLE_INSTALL_HEADERS) -+ install(DIRECTORY ${CPR_INCLUDE_DIRS}/cpr DESTINATION include) -+endif() diff --git a/ports/cpr/fix-uwp.patch b/ports/cpr/fix-uwp.patch new file mode 100644 index 000000000..e91eb62b5 --- /dev/null +++ b/ports/cpr/fix-uwp.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8575b2f..87de55c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -46,7 +46,7 @@ message(STATUS "=======================================================") + include(GNUInstallDirs) + include(FetchContent) + include(cmake/code_coverage.cmake) +-include(cmake/sanitizer.cmake) ++#include(cmake/sanitizer.cmake) + include(cmake/gcc_analyze.cmake) + + # SSL diff --git a/ports/cpr/portfile.cmake b/ports/cpr/portfile.cmake index 91a2af7a8..9d99ebe04 100644 --- a/ports/cpr/portfile.cmake +++ b/ports/cpr/portfile.cmake @@ -1,21 +1,26 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +if(VCPKG_TARGET_IS_UWP) + set(UWP_PATCH fix-uwp.patch) +endif() + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO whoshuu/cpr - REF 41fbaca90160950f1397e0ffc6b58bd81063f131 # v1.5.2 - SHA512 0c493eef3069c1067f2492e6bc91e20b415a03a9392cbe70d4fb40f64a71b601ec62a9bcf5ca7e5b5a6e74449904f3121503421f4653f5b55df6702121806977 + REF f4622efcb59d84071ae11404ae61bd821c1c344b # v1.6.2 + SHA512 7835b7613529798b5edaefc99c907bbc7144133a1fac62a2c9af09c8c7a09b2ea1864544c4c0385969ad3dc64806b8d258abbcd39add2004ed8428741286ff20 HEAD_REF master PATCHES 001-cpr-config.patch + ${UWP_PATCH} ) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS - -DBUILD_CPR_TESTS=OFF - -DUSE_SYSTEM_CURL=ON + -DCPR_BUILD_TESTS=OFF + -DCPR_FORCE_USE_SYSTEM_CURL=ON OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON ) diff --git a/ports/cpr/vcpkg.json b/ports/cpr/vcpkg.json new file mode 100644 index 000000000..5a648e290 --- /dev/null +++ b/ports/cpr/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "cpr", + "version-semver": "1.6.2", + "description": "C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.", + "homepage": "https://github.com/whoshuu/cpr", + "dependencies": [ + { + "name": "curl", + "default-features": false + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 7839fe899..7c7e561db 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1473,7 +1473,7 @@ "port-version": 1 }, "cpr": { - "baseline": "1.5.2", + "baseline": "1.6.2", "port-version": 0 }, "cpu-features": { diff --git a/versions/c-/cpr.json b/versions/c-/cpr.json index edda87dad..0bbf0b63f 100644 --- a/versions/c-/cpr.json +++ b/versions/c-/cpr.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "96762dddaeb7d520833ddc1d47a30f26c35c9f67", + "version-semver": "1.6.2", + "port-version": 0 + }, + { "git-tree": "0a3303682963a35032b7203c69051cf2edfaf41a", "version-string": "1.5.2", "port-version": 0 |
