[wildcards] add new port (#43663)

This commit is contained in:
toge 2025-02-13 11:59:06 +09:00 committed by GitHub
parent 0e605ec898
commit b2b6005419
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 81 additions and 0 deletions

View File

@ -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"
+)

View File

@ -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")

View File

@ -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
}
]
}

View File

@ -9796,6 +9796,10 @@
"baseline": "1.0.240803.1",
"port-version": 0
},
"wildcards": {
"baseline": "1.4.0",
"port-version": 0
},
"wildmidi": {
"baseline": "0.4.6",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "be8975a246116f1f2eb9cc55044b2f47d129b4ce",
"version": "1.4.0",
"port-version": 0
}
]
}