mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:28:59 +08:00
[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:
parent
79be4be144
commit
eb7cb824c4
23
ports/mpark-patterns/portfile.cmake
Normal file
23
ports/mpark-patterns/portfile.cmake
Normal 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}")
|
5
ports/mpark-patterns/usage
Normal file
5
ports/mpark-patterns/usage
Normal 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)
|
||||
|
17
ports/mpark-patterns/vcpkg.json
Normal file
17
ports/mpark-patterns/vcpkg.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
@ -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
|
||||
|
9
versions/m-/mpark-patterns.json
Normal file
9
versions/m-/mpark-patterns.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f8b22778a3c1393308468021303beb56ff392a03",
|
||||
"version-date": "2019-10-03",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user