[mpark-patterns] add new port (#34679)

* [mpark-patterns] add new port

* [mpark-patterns] add new port

* [mpark-patterns] add new port

* [mpark-patterns] add new port
This commit is contained in:
Jia Yue Hua 2023-10-27 11:58:24 +08:00 committed by GitHub
parent 79be4be144
commit eb7cb824c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 0 deletions

View File

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

View File

@ -0,0 +1,5 @@
The package mpark-patterns provides CMake targets:
find_package(mpark_patterns CONFIG REQUIRED)
target_link_libraries(main PRIVATE mpark_patterns)

View File

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

View File

@ -5592,6 +5592,10 @@
"baseline": "3.100",
"port-version": 11
},
"mpark-patterns": {
"baseline": "2019-10-03",
"port-version": 0
},
"mpark-variant": {
"baseline": "1.4.0",
"port-version": 3

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f8b22778a3c1393308468021303beb56ff392a03",
"version-date": "2019-10-03",
"port-version": 0
}
]
}