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/wildcards | |
Diffstat (limited to 'vcpkg/ports/wildcards')
| -rw-r--r-- | vcpkg/ports/wildcards/install.patch | 25 | ||||
| -rw-r--r-- | vcpkg/ports/wildcards/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/wildcards/vcpkg.json | 18 |
3 files changed, 68 insertions, 0 deletions
diff --git a/vcpkg/ports/wildcards/install.patch b/vcpkg/ports/wildcards/install.patch new file mode 100644 index 0000000..3abfb9b --- /dev/null +++ b/vcpkg/ports/wildcards/install.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b6cae16..fdc48f3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -52,3 +52,20 @@ if(WILDCARDS_CLANGFORMAT) + + clangformat_setup("${clangformat_srcs}") + endif() ++ ++add_library(wildcards INTERFACE) ++ ++install(TARGETS wildcards ++ EXPORT unofficial-wildcards-targets ++ INCLUDES DESTINATION include) ++ ++install(EXPORT unofficial-wildcards-targets ++ FILE unofficial-wildcards-config.cmake ++ NAMESPACE unofficial::wildcards:: ++ DESTINATION share/unofficial-wildcards) ++ ++include(GNUInstallDirs) ++install( ++ DIRECTORY include/ ++ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wildcards" ++) diff --git a/vcpkg/ports/wildcards/portfile.cmake b/vcpkg/ports/wildcards/portfile.cmake new file mode 100644 index 0000000..fd6c194 --- /dev/null +++ b/vcpkg/ports/wildcards/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO zemasoft/wildcards + REF "v${VERSION}" + SHA512 a739eaf567ec3e8a42c99dc694225e434e72e6ed83ab57d3a05fa3a710bfae7d15a6e7fcbf22f29f6d70a74941db73d976650cfc77b69441c6baa36f6727eb1f + HEAD_REF main + PATCHES + install.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DWILDCARDS_BUILD_TESTS=OFF + -DWILDCARDS_BUILD_EXAMPLES=OFF + -DWILDCARDS_ENABLE_WERROR=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-wildcards) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") diff --git a/vcpkg/ports/wildcards/vcpkg.json b/vcpkg/ports/wildcards/vcpkg.json new file mode 100644 index 0000000..8756abc --- /dev/null +++ b/vcpkg/ports/wildcards/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "wildcards", + "version": "1.4.0", + "description": "A simple C++ header-only template library implementing matching using wildcards", + "homepage": "https://github.com/zemasoft/wildcards", + "license": "BSL-1.0", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |