[cofetch] Add new port (#52831)

This commit is contained in:
Andy Hsu 2026-07-11 16:13:11 +08:00 committed by GitHub
parent 2ad6398a3c
commit de62e9c047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Header-only library
set(VCPKG_BUILD_TYPE release)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SSARCandy/cofetch
REF "v${VERSION}"
SHA512 f6249895461d8db7b2f3d7801944fadaeab85fe648bbc01840f523dafd23c4fe267a2669540a892c4a3af1d50296d0d4f48b497a8de019fd11adbe2e6ea4e495
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCOFETCH_INSTALL=ON
-DCOFETCH_BUILD_EXAMPLES=OFF
-DCOFETCH_USE_VENDORED_ASIO=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cofetch)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

19
ports/cofetch/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "cofetch",
"version": "0.1.2",
"description": "Chainable async HTTP client for C++ event loops, built on libcurl multi and ASIO. One API serves callbacks, std::future, and C++20 co_await",
"homepage": "https://github.com/SSARCandy/cofetch",
"license": "MIT",
"dependencies": [
"asio",
"curl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1888,6 +1888,10 @@
"baseline": "2024-09-04",
"port-version": 0
},
"cofetch": {
"baseline": "0.1.2",
"port-version": 0
},
"coin": {
"baseline": "4.0.8",
"port-version": 1

9
versions/c-/cofetch.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "311c32c4633cb5018f41b11326c64466ae4d42e3",
"version": "0.1.2",
"port-version": 0
}
]
}