[neko-event] Add new port (#48423)

This commit is contained in:
Hoshi
2025-11-21 15:38:57 +09:00
committed by GitHub
parent 0aacf74057
commit 2ad7bd0612
5 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO moehoshio/NekoEvent
REF v1.0.1
SHA512 2c9579def648a0feaaf0763d11801b70260d8f56bd477fcafc9d45cb7c2c5c8ab365f77c925aad46a75aa85c5c0730efee9ace0b6a5f3025a3166a776908a8e7
HEAD_REF main
)
set(VCPKG_BUILD_TYPE release)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNEKO_EVENT_BUILD_TESTS=OFF
-DNEKO_EVENT_AUTO_FETCH_DEPS=OFF
-DNEKO_EVENT_ENABLE_MODULE=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoEvent PACKAGE_NAME nekoevent)
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/neko-event/usage Normal file
View File

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

View File

@@ -0,0 +1,18 @@
{
"name": "neko-event",
"version": "1.0.1",
"description": "A modern easy to use type-safe and high-performance event handling system for C++ ",
"homepage": "https://github.com/moehoshio/NekoEvent",
"license": "MIT OR Apache-2.0",
"dependencies": [
"neko-schema",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@@ -6788,6 +6788,10 @@
"baseline": "2023-11-22",
"port-version": 1
},
"neko-event": {
"baseline": "1.0.1",
"port-version": 0
},
"neko-schema": {
"baseline": "1.0.4",
"port-version": 0

View File

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