diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-10-13 15:02:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-13 15:02:41 -0700 |
| commit | 26279b79d07fd850f61fc5144965994255aff008 (patch) | |
| tree | 9c9d3dbb250a4b81a4be5b970d695ecf48a22fc8 | |
| parent | cebe05184119cfabcc8f5c0e71c8673c22a1487b (diff) | |
| download | vcpkg-26279b79d07fd850f61fc5144965994255aff008.tar.gz vcpkg-26279b79d07fd850f61fc5144965994255aff008.zip | |
[cpr/crc32c] Update version (#13678)
| -rw-r--r-- | ports/cpr/001-cpr-config.patch | 127 | ||||
| -rw-r--r-- | ports/cpr/002_cpr_fixcase.patch | 13 | ||||
| -rw-r--r-- | ports/cpr/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cpr/portfile.cmake | 10 | ||||
| -rw-r--r-- | ports/crc32c/0001_export_symbols.patch | 15 | ||||
| -rw-r--r-- | ports/crc32c/CONTROL | 2 | ||||
| -rw-r--r-- | ports/crc32c/portfile.cmake | 9 |
7 files changed, 42 insertions, 136 deletions
diff --git a/ports/cpr/001-cpr-config.patch b/ports/cpr/001-cpr-config.patch index 9b9b11352..8da445975 100644 --- a/ports/cpr/001-cpr-config.patch +++ b/ports/cpr/001-cpr-config.patch @@ -1,94 +1,33 @@ -diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
-index a6db5bd..90bec48 100644
---- a/cpr/CMakeLists.txt
-+++ b/cpr/CMakeLists.txt
-@@ -1,47 +1,46 @@
--message(STATUS "Using CURL_INCLUDE_DIRS: ${CURL_INCLUDE_DIRS}.")
--include_directories(
-- ${CPR_INCLUDE_DIRS}
-- ${CURL_INCLUDE_DIRS})
--
- add_library(${CPR_LIBRARIES}
-+ auth.cpp
-+ cookies.cpp
-+ cprtypes.cpp
-+ digest.cpp
-+ error.cpp
-+ multipart.cpp
-+ parameters.cpp
-+ payload.cpp
-+ proxies.cpp
-+ session.cpp
-+ timeout.cpp
-+ util.cpp
-+ ssl_options.cpp
-+)
-+
-+target_link_libraries( ${CPR_LIBRARIES}
-+ PUBLIC ${CURL_LIBRARIES}
-+)
-+
-+target_include_directories(${CPR_LIBRARIES}
-+ PUBLIC
-+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
-+ $<INSTALL_INTERFACE:include>
-+ PRIVATE
-+ $<BUILD_INTERFACE:${CURL_INCLUDE_DIRS}>
-+)
-+
-
-- # Source files
-- auth.cpp
-- cookies.cpp
-- cprtypes.cpp
-- digest.cpp
-- error.cpp
-- multipart.cpp
-- parameters.cpp
-- payload.cpp
-- proxies.cpp
-- session.cpp
-- timeout.cpp
-- util.cpp
-- ssl_options.cpp
-+set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
-+install(
-+ TARGETS ${CPR_LIBRARIES}
-+ EXPORT ${TARGETS_EXPORT_NAME}
-+ RUNTIME DESTINATION bin
-+ LIBRARY DESTINATION lib
-+ ARCHIVE DESTINATION lib
-+)
-
-- # Header files (useful in IDEs)
-- "${CPR_INCLUDE_DIRS}/cpr/api.h"
-- "${CPR_INCLUDE_DIRS}/cpr/auth.h"
-- "${CPR_INCLUDE_DIRS}/cpr/body.h"
-- "${CPR_INCLUDE_DIRS}/cpr/cookies.h"
-- "${CPR_INCLUDE_DIRS}/cpr/cpr.h"
-- "${CPR_INCLUDE_DIRS}/cpr/cprtypes.h"
-- "${CPR_INCLUDE_DIRS}/cpr/curlholder.h"
-- "${CPR_INCLUDE_DIRS}/cpr/defines.h"
-- "${CPR_INCLUDE_DIRS}/cpr/digest.h"
-- "${CPR_INCLUDE_DIRS}/cpr/error.h"
-- "${CPR_INCLUDE_DIRS}/cpr/max_redirects.h"
-- "${CPR_INCLUDE_DIRS}/cpr/multipart.h"
-- "${CPR_INCLUDE_DIRS}/cpr/parameters.h"
-- "${CPR_INCLUDE_DIRS}/cpr/payload.h"
-- "${CPR_INCLUDE_DIRS}/cpr/proxies.h"
-- "${CPR_INCLUDE_DIRS}/cpr/response.h"
-- "${CPR_INCLUDE_DIRS}/cpr/session.h"
-- "${CPR_INCLUDE_DIRS}/cpr/timeout.h"
-- "${CPR_INCLUDE_DIRS}/cpr/util.h"
-- "${CPR_INCLUDE_DIRS}/cpr/ssl_options.h")
-+install(
-+ EXPORT ${TARGETS_EXPORT_NAME}
-+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
-+)
-
--message(STATUS "Using CURL_LIBRARIES: ${CURL_LIBRARIES}.")
--target_link_libraries(${CPR_LIBRARIES}
-- ${CURL_LIBRARIES})
-+if (NOT DISABLE_INSTALL_HEADERS)
-+ install(DIRECTORY ${CPR_INCLUDE_DIRS}/cpr DESTINATION include)
-+endif()
+diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt +index 563b785..20f8a54 100644 +--- a/cpr/CMakeLists.txt ++++ b/cpr/CMakeLists.txt +@@ -20,6 +20,7 @@ add_library(cpr + + add_library(cpr::cpr ALIAS cpr) + ++target_include_directories(cpr PUBLIC $<INSTALL_INTERFACE:include>) + 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 + VERSION ${${PROJECT_NAME}_VERSION} + SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR}) + +-install(TARGETS cpr) ++set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets") ++install(TARGETS cpr ++ EXPORT ${TARGETS_EXPORT_NAME} ++ RUNTIME DESTINATION bin ++ LIBRARY DESTINATION lib ++ ARCHIVE DESTINATION lib) ++ ++install( ++ EXPORT ${TARGETS_EXPORT_NAME} ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" ++) ++ ++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/002_cpr_fixcase.patch b/ports/cpr/002_cpr_fixcase.patch deleted file mode 100644 index 4dbc97119..000000000 --- a/ports/cpr/002_cpr_fixcase.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cpr/error.cpp b/cpr/error.cpp
-index 713cb10..4143f93 100644
---- a/cpr/error.cpp
-+++ b/cpr/error.cpp
-@@ -38,8 +38,6 @@ ErrorCode Error::getErrorCodeForCurlError(std::int32_t curl_code) {
- return ErrorCode::SSL_LOCAL_CERTIFICATE_ERROR;
- case CURLE_SSL_CIPHER:
- return ErrorCode::GENERIC_SSL_ERROR;
-- case CURLE_SSL_CACERT:
-- return ErrorCode::SSL_CACERT_ERROR;
- case CURLE_USE_SSL_FAILED:
- return ErrorCode::GENERIC_SSL_ERROR;
- case CURLE_SSL_ENGINE_INITFAILED:
diff --git a/ports/cpr/CONTROL b/ports/cpr/CONTROL index 6912c8be6..6f292740f 100644 --- a/ports/cpr/CONTROL +++ b/ports/cpr/CONTROL @@ -1,5 +1,5 @@ Source: cpr -Version: 1.3.0-8 +Version: 1.5.1 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/portfile.cmake b/ports/cpr/portfile.cmake index 9e2c40a0d..5b931c1b6 100644 --- a/ports/cpr/portfile.cmake +++ b/ports/cpr/portfile.cmake @@ -1,16 +1,13 @@ -include(vcpkg_common_functions) - vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO whoshuu/cpr - REF 1.3.0 - SHA512 fd08f8a592a5e1fb8dc93158a4850b81575983c08527fb415f65bd9284f93c804c8680d16c548744583cd26b9353a7d4838269cfc59ccb6003da8941f620c273 + REF 5e87cb5f45ac99858f0286dc1c35a6cd27c3bcb9 # v1.5.1 + SHA512 1ea6295b5568d8d5d099cb1d89d19b3cae873bd869f64be4495be301561c91893f3c1c375823ce18419c780cda52aab79520293ff63ee529ded5431ec511ce5c HEAD_REF master PATCHES 001-cpr-config.patch - 002_cpr_fixcase.patch ) vcpkg_configure_cmake( @@ -33,5 +30,4 @@ vcpkg_copy_pdbs() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) # Handle copyright -file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cpr) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/cpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/cpr/copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/crc32c/0001_export_symbols.patch b/ports/crc32c/0001_export_symbols.patch deleted file mode 100644 index 691e8603f..000000000 --- a/ports/crc32c/0001_export_symbols.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 80b7d17..6ab78e2 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -15,6 +15,10 @@ set(CMAKE_CXX_STANDARD 11) - set(CMAKE_CXX_STANDARD_REQUIRED ON) - set(CMAKE_CXX_EXTENSIONS OFF) - -+# When compiling a Windows DLL export all symbols, just like Unix shared -+# objects do. -+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -+ - # https://github.com/izenecloud/cmake/blob/master/SetCompilerWarningAll.cmake - if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - # Use the highest warning level for Visual Studio. diff --git a/ports/crc32c/CONTROL b/ports/crc32c/CONTROL index b13c39f0f..b7d86b001 100644 --- a/ports/crc32c/CONTROL +++ b/ports/crc32c/CONTROL @@ -1,4 +1,4 @@ Source: crc32c -Version: 1.1.0 +Version: 1.1.1 Homepage: https://github.com/google/crc32c Description: CRC32C implementation with support for CPU-specific acceleration instructions. diff --git a/ports/crc32c/portfile.cmake b/ports/crc32c/portfile.cmake index bce61bc2e..ccd8ca47b 100644 --- a/ports/crc32c/portfile.cmake +++ b/ports/crc32c/portfile.cmake @@ -1,12 +1,11 @@ -include(vcpkg_common_functions) +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO google/crc32c - REF 83c31e797274a5b26e9e4a5355ba394cd0cabc10 - SHA512 829f8618c2769d274b400cf6de1dd2ab874d50d36e8cb086238aadae804154360b113faecd3c60e029a8d5ebc620d4b7cc7e1492775a4235d53989116227cd52 + REF ba741856254e3c6f6c7bcf0704fe1344a668a227 # 1.1.1 + SHA512 129e7cf36a92f6d953b4545e673860b0d956aa0ecf89ae98dfcfdff03031482d03f9036d11d0546446f1e73f65548cdd87065759dc6efd39f0fd9c58234ebb24 HEAD_REF master - PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch ) vcpkg_configure_cmake( @@ -30,4 +29,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") endif() # Handle copyright -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/crc32c RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
