[via-httplib] add new port (#40351)

Co-authored-by: Emanuele Zavallone <emanuele.zavallone@next-informatica.com>
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
Co-authored-by: data-queue <144965964+data-queue@users.noreply.github.com>
This commit is contained in:
Ema 2024-08-21 08:40:31 +02:00 committed by GitHub
parent a00ea194fa
commit bb002e69de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,22 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kenba/via-httplib
REF ${VERSION}
SHA512 3a36d251b6dfe9ad40d798761169a70877c6d12a94ea2799670d701a4449e2fe15558bc9f50fa46e17e3f2a53b91eb233254efd5000eeece07890e1a804f301d
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME ViaHttpLib CONFIG_PATH lib/cmake/ViaHttpLib)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ViaHttpLib/ViaHttpLibConfig.cmake"
"find_dependency(Boost 1.51)"
[[find_dependency(Boost COMPONENTS system)]])
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")

View File

@ -0,0 +1,19 @@
{
"name": "via-httplib",
"version": "1.9.0",
"description": "C++ HTTP Library",
"homepage": "https://github.com/kenba/via-httplib",
"license": "GPL-2.0-or-later",
"dependencies": [
"boost-asio",
"json-spirit",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -9288,6 +9288,10 @@
"baseline": "1.4.0", "baseline": "1.4.0",
"port-version": 0 "port-version": 0
}, },
"via-httplib": {
"baseline": "1.9.0",
"port-version": 0
},
"vili": { "vili": {
"baseline": "1.0.0+20221123", "baseline": "1.0.0+20221123",
"port-version": 1 "port-version": 1

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b8d9653408119df7140ccacc79ac7f75caddeea2",
"version": "1.9.0",
"port-version": 0
}
]
}