[fkyaml] add new port (#47567)

This commit is contained in:
toge 2025-10-07 02:18:24 +09:00 committed by GitHub
parent 4b55d8cb0e
commit fb50da5764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b1a8b81..59c9464 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -190,7 +190,7 @@ if(FK_YAML_INSTALL)
if(FK_YAML_INSTALL_NATVIS)
install(
FILES ${FK_YAML_NATVIS_FILE}
- DESTINATION .
+ DESTINATION share/fkyaml
)
endif()

View File

@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fktn-k/fkYAML
REF "v${VERSION}"
SHA512 20a7e2a236f77e27a676348585cbf6c36d8c46f1ad0964b879eb61925e3d6545d6dda46379b897712890faa2b8d5e837b7f9cc312448a3d762f0017c618cbcd1
HEAD_REF develop
PATCHES
fix-natvis-path.patch
)
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DFK_YAML_INSTALL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/fkYAML)
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

17
ports/fkyaml/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "fkyaml",
"version": "0.4.2",
"description": "A C++ header-only YAML library",
"homepage": "https://github.com/fktn-k/fkYAML",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2940,6 +2940,10 @@
"baseline": "2025.05.19.00",
"port-version": 0
},
"fkyaml": {
"baseline": "0.4.2",
"port-version": 0
},
"flagpp": {
"baseline": "2.1",
"port-version": 0

9
versions/f-/fkyaml.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "21138b93a764b6ba43549ceb71ff28b5aecd9ea6",
"version": "0.4.2",
"port-version": 0
}
]
}