[nameof] Update to 0.10.2 (#26168)

* [nameof] Update to 0.10.2

* vcpkg x-add-version nameof

* modernization

* overwrite-version

* license

* overwrite-version

* fix review

* overwrite-version
This commit is contained in:
Daniil Goncharov 2022-08-06 10:47:46 +04:00 committed by GitHub
parent c567729cbc
commit 05d0035210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 14 deletions

View File

@ -3,25 +3,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Neargye/nameof
REF v0.10.1
SHA512 9b3ed7a3f5dcf1ad309341102d2aaa07fc8e9d6db7e08e42c2d9b5453c822ec16d6c6910adf7c4af8879c4084cac362f4fb4c07559cc49594b72b4917816ef5d
REF v0.10.2
SHA512 1ec508378d12eb4a65da1bee8011302f65e78bbcab82aae716afc673665af5283a5aae5f1d0de85c7d6f59bb7268e02fc01b171f50de26bb86dc27c3b46097fa
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
-DNAMEOF_OPT_BUILD_TESTS=OFF
-DNAMEOF_OPT_INSTALL=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nameof TARGET_PATH share/nameof)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
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)

View File

@ -1,7 +1,17 @@
{
"name": "nameof",
"version-string": "0.10.1",
"port-version": 1,
"version": "0.10.2",
"description": "Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum.",
"homepage": "https://github.com/Neargye/nameof"
"homepage": "https://github.com/Neargye/nameof",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4821,8 +4821,8 @@
"port-version": 3
},
"nameof": {
"baseline": "0.10.1",
"port-version": 1
"baseline": "0.10.2",
"port-version": 0
},
"nana": {
"baseline": "1.7.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c6e74d9d06b8f8982ecfbad4b07e5215c8ea054b",
"version": "0.10.2",
"port-version": 0
},
{
"git-tree": "73b076af7e5bb74d8531885c3172ccdea74bce80",
"version-string": "0.10.1",