Skip to content

Commit

Permalink
[magic-enum] Update to v0.8.0 (#24646)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
Neargye and Thomas1664 authored May 11, 2022
1 parent 1c49801 commit 188ff7a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
18 changes: 9 additions & 9 deletions ports/magic-enum/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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 @@ -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",
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": "2b170feb45c6c04a727f51a40d65fd01b5f0afdc",
"version": "0.8.0",
"port-version": 0
},
{
"git-tree": "1962d2e544199e80b56432fb1bd1e28c12cca3ad",
"version-string": "0.7.3",
Expand Down

0 comments on commit 188ff7a

Please sign in to comment.