[cpp-httplib] Bump to 0.13.3 (#32949)

* [cpp-httplib] Bump to 0.13.3

* update version database
This commit is contained in:
Weihang Ding 2023-08-08 00:05:51 +08:00 committed by GitHub
parent 42ffe30d32
commit fcd7a06ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 25 deletions

View File

@ -1,23 +1,23 @@
# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yhirose/cpp-httplib
REF "v${VERSION}"
SHA512 4a70ebafd0920116a78ea18982606f0bec396e5cdcea9ba583c1da4fd77fa45c5bf30a6ac14eeee9424f3e445a882a560345d731a7113ab4e7dff88f4ef0a436
HEAD_REF master
PATCHES
fix-find-brotli.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME httplib CONFIG_PATH lib/cmake/httplib)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib" "${CURRENT_PACKAGES_DIR}/lib")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yhirose/cpp-httplib
REF "v${VERSION}"
SHA512 5181f185bc0bb37429847e2656534ff25512458c0219631c982b776c65fd6be73e038f88d47e42b4f614324e51577bc8815e80952c7c7ca6e66eca4a16a9f30d
HEAD_REF master
PATCHES
fix-find-brotli.patch
)
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME httplib CONFIG_PATH lib/cmake/httplib)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/cpp-httplib/usage Normal file
View File

@ -0,0 +1,4 @@
cpp-httplib provides CMake targets:
find_package(httplib CONFIG REQUIRED)
target_link_libraries(main PRIVATE httplib::httplib)

View File

@ -1,6 +1,6 @@
{
"name": "cpp-httplib",
"version": "0.13.1",
"version": "0.13.3",
"description": "A single file C++11 header-only HTTP/HTTPS server and client library",
"homepage": "https://github.com/yhirose/cpp-httplib",
"license": "MIT",

View File

@ -1769,7 +1769,7 @@
"port-version": 0
},
"cpp-httplib": {
"baseline": "0.13.1",
"baseline": "0.13.3",
"port-version": 0
},
"cpp-ipc": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e1a8cffe02efe8a9c92d1aa1e802f12a8d893aa8",
"version": "0.13.3",
"port-version": 0
},
{
"git-tree": "795e219c0d92adb47551a8a8a4a1e800d5fe70a9",
"version": "0.13.1",