[neko-network] Add new port (#48536)

This commit is contained in:
Hoshi 2025-12-02 06:52:00 +09:00 committed by GitHub
parent 7a29cb220b
commit 95b2189e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO moehoshio/NekoNetwork
REF v1.0.1
SHA512 367b836c255234352b270253b8bde4f781ca317d16e019741eabacd0ca86941a2be95f8e94a1a04eaa9bd58ace83b26da862d935ef03c5ed1ceabac310812cf8
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNEKO_NETWORK_BUILD_TESTS=OFF
-DNEKO_NETWORK_AUTO_FETCH_DEPS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoNetwork PACKAGE_NAME nekonetwork)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/neko-network/usage Normal file
View File

@ -0,0 +1,4 @@
NekoNetwork provides CMake targets:
find_package(NekoNetwork CONFIG REQUIRED)
target_link_libraries(main PRIVATE Neko::Network)

View File

@ -0,0 +1,32 @@
{
"name": "neko-network",
"version": "1.0.1",
"description": "Neko Network is a modern, easy-to-use, and efficient C++20 network library built on top of libcurl.",
"homepage": "https://github.com/moehoshio/NekoNetwork",
"license": "MIT OR Apache-2.0",
"dependencies": [
"curl",
"neko-function",
"neko-schema",
"neko-system",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"nlog"
],
"features": {
"nlog": {
"description": "Use nlog as the default logger.",
"dependencies": [
"neko-log"
]
}
}
}

View File

@ -6804,6 +6804,10 @@
"baseline": "1.0.6",
"port-version": 0
},
"neko-network": {
"baseline": "1.0.1",
"port-version": 0
},
"neko-schema": {
"baseline": "1.1.4",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "62e58b2aea0cd7dca73ffe8a0c910dbe225570d1",
"version": "1.0.1",
"port-version": 0
}
]
}