[neko-schema] Add new port (#48276)

This commit is contained in:
Hoshi
2025-11-18 16:04:32 +09:00
committed by GitHub
parent 6b986b83a2
commit 53ae71772c
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/NekoSchema
REF v1.0.4
SHA512 A76BBCFE848E2E7E722DD9A8A9ED471C541DE908D32FCB06282A0849A132935D90F25F9846D5D694A81A19997DF0DC19156F38E52463FB19FB7CAA40CF2E4D8A
HEAD_REF main
)
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNEKO_SCHEMA_BUILD_TESTS=OFF
-DNEKO_SCHEMA_AUTO_FETCH_DEPS=OFF
-DNEKO_SCHEMA_ENABLE_MODULE=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoSchema PACKAGE_NAME nekoschema)
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-schema/usage Normal file
View File

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

View File

@@ -0,0 +1,18 @@
{
"name": "neko-schema",
"version": "1.0.4",
"description": "A lightweight C++20 header-only library providing fundamental type definitions and utilities for the Neko ecosystem",
"homepage": "https://github.com/moehoshio/NekoSchema",
"license": "MIT OR Apache-2.0",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@@ -6780,6 +6780,10 @@
"baseline": "2023-11-22",
"port-version": 1
},
"neko-schema": {
"baseline": "1.0.4",
"port-version": 0
},
"neon2sse": {
"baseline": "2024-11-24",
"port-version": 0

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "8f1d0edb246df85c24d0320d5b6f110519fa1516",
"version": "1.0.4",
"port-version": 0
}
]
}