Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[magic-enum] Update to v0.8.0 #24646

Merged
merged 15 commits into from
May 11, 2022
19 changes: 10 additions & 9 deletions ports/magic-enum/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
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
Neargye marked this conversation as resolved.
Show resolved Hide resolved
-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" TARGET_PATH "share/magic_enum")
Neargye marked this conversation as resolved.
Show resolved Hide resolved

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)
16 changes: 13 additions & 3 deletions ports/magic-enum/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4345,8 +4345,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",
Expand Down
5 changes: 5 additions & 0 deletions versions/m-/magic-enum.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "54d921619501885c2e0fc9b2b0749397496603af",
"version": "0.8.0",
"port-version": 0
},
{
"git-tree": "1962d2e544199e80b56432fb1bd1e28c12cca3ad",
"version-string": "0.7.3",
Expand Down