diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/fkyaml | |
Diffstat (limited to 'vcpkg/ports/fkyaml')
| -rw-r--r-- | vcpkg/ports/fkyaml/fix-natvis-path.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/fkyaml/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/fkyaml/vcpkg.json | 17 |
3 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/fkyaml/fix-natvis-path.patch b/vcpkg/ports/fkyaml/fix-natvis-path.patch new file mode 100644 index 0000000..ba39a4d --- /dev/null +++ b/vcpkg/ports/fkyaml/fix-natvis-path.patch @@ -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() + diff --git a/vcpkg/ports/fkyaml/portfile.cmake b/vcpkg/ports/fkyaml/portfile.cmake new file mode 100644 index 0000000..30edbc7 --- /dev/null +++ b/vcpkg/ports/fkyaml/portfile.cmake @@ -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") diff --git a/vcpkg/ports/fkyaml/vcpkg.json b/vcpkg/ports/fkyaml/vcpkg.json new file mode 100644 index 0000000..08e75e0 --- /dev/null +++ b/vcpkg/ports/fkyaml/vcpkg.json @@ -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 + } + ] +} |