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/mpark-patterns | |
Diffstat (limited to 'vcpkg/ports/mpark-patterns')
| -rw-r--r-- | vcpkg/ports/mpark-patterns/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/mpark-patterns/usage | 5 | ||||
| -rw-r--r-- | vcpkg/ports/mpark-patterns/vcpkg.json | 17 |
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/mpark-patterns/portfile.cmake b/vcpkg/ports/mpark-patterns/portfile.cmake new file mode 100644 index 0000000..639fdce --- /dev/null +++ b/vcpkg/ports/mpark-patterns/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mpark/patterns + REF b3270e0dd7b6312f7a4fe8647e2333dbb86e355e + SHA512 ca8062b92cf0d5874aba7067615ff8cb089c22cb921d6131762a8dcb2f50d4f47d80c59b62b1c9b7e70dae2dfb68a44c2a4feeb78ab5e5473e0fbdd089538314 + HEAD_REF master +) + +set(VCPKG_BUILD_TYPE release) #header-only library + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME mpark_patterns CONFIG_PATH "lib/cmake/mpark_patterns") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/mpark-patterns/usage b/vcpkg/ports/mpark-patterns/usage new file mode 100644 index 0000000..8e4f5d5 --- /dev/null +++ b/vcpkg/ports/mpark-patterns/usage @@ -0,0 +1,5 @@ +The package mpark-patterns provides CMake targets: + + find_package(mpark_patterns CONFIG REQUIRED) + target_link_libraries(main PRIVATE mpark_patterns) + diff --git a/vcpkg/ports/mpark-patterns/vcpkg.json b/vcpkg/ports/mpark-patterns/vcpkg.json new file mode 100644 index 0000000..a961917 --- /dev/null +++ b/vcpkg/ports/mpark-patterns/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "mpark-patterns", + "version-date": "2019-10-03", + "description": "MPark.Patterns is an experimental pattern matching library for C++17.", + "homepage": "https://github.com/mpark/patterns", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |