diff --git a/ports/wildcards/install.patch b/ports/wildcards/install.patch new file mode 100644 index 0000000000..3abfb9b312 --- /dev/null +++ b/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/ports/wildcards/portfile.cmake b/ports/wildcards/portfile.cmake new file mode 100644 index 0000000000..fd6c194879 --- /dev/null +++ b/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/ports/wildcards/vcpkg.json b/ports/wildcards/vcpkg.json new file mode 100644 index 0000000000..8756abca0e --- /dev/null +++ b/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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index bb6c030300..a5be07dba7 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/w-/wildcards.json b/versions/w-/wildcards.json new file mode 100644 index 0000000000..8b2c016c8a --- /dev/null +++ b/versions/w-/wildcards.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "be8975a246116f1f2eb9cc55044b2f47d129b4ce", + "version": "1.4.0", + "port-version": 0 + } + ] +}