* [magic-enum] Update to v0.8.0

* x-add-version

* fix deprecated

* fix review

* fix version

* Update ports/magic-enum/portfile.cmake

Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>

* Update ports/magic-enum/portfile.cmake

Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>

* Update versions/m-/magic-enum.json

Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>

* fix review

* overwrite-version

* fix cmake

* fix onfig_fixup

* overwrite-version

* delete extra blank line

* overwrite-version

Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>
This commit is contained in:
Daniil Goncharov 2022-05-12 03:46:53 +04:00 коммит произвёл GitHub
Родитель 1c498017cb
Коммит 188ff7a102
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 29 добавлений и 14 удалений

Просмотреть файл

@ -3,25 +3,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Neargye/magic_enum
REF v0.7.3
SHA512 7645ef56bbe262ba801c6f5ffb7baf997869de6422a239ef2000d7ff6f4f6d00c34360543c60aa91a02433311b4b996bba410e4f04f96f185a6276ad9e6bb0a8
REF v0.8.0
SHA512 097260c234a1b716d26b537cd80a8d3eca255422e8dce46183708a27b1d4ad1d81c6be05f1b7d300db3362eafa243cccc39c9d12f1bcbfdb0d7755701a222808
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DMAGIC_ENUM_OPT_ENABLE_NONASCII=OFF
-DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF
-DMAGIC_ENUM_OPT_BUILD_TESTS=OFF
-DMAGIC_ENUM_OPT_INSTALL=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/magic_enum TARGET_PATH share/magic_enum)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/magic_enum PACKAGE_NAME magic_enum)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

Просмотреть файл

@ -1,7 +1,17 @@
{
"name": "magic-enum",
"version-string": "0.7.3",
"port-version": 1,
"version": "0.8.0",
"description": "Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.",
"homepage": "https://github.com/Neargye/magic_enum"
"homepage": "https://github.com/Neargye/magic_enum",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

Просмотреть файл

@ -4349,8 +4349,8 @@
"port-version": 0
},
"magic-enum": {
"baseline": "0.7.3",
"port-version": 1
"baseline": "0.8.0",
"port-version": 0
},
"magic-get": {
"baseline": "2019-09-02",

Просмотреть файл

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2b170feb45c6c04a727f51a40d65fd01b5f0afdc",
"version": "0.8.0",
"port-version": 0
},
{
"git-tree": "1962d2e544199e80b56432fb1bd1e28c12cca3ad",
"version-string": "0.7.3",