[scope-guard] Add new port (#29821)

* Add port files for scope_guard

* Add version for scope_guard

* Update portfile.cmake with suggested changes

* Update scope-guard.json

---------

Co-authored-by: Frank <1433351828@qq.com>
This commit is contained in:
Oliver Old 2023-02-28 19:16:46 +01:00 committed by GitHub
parent 1f6508708b
commit 5aa33f1076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ricab/scope_guard
REF "v${VERSION}"
SHA512 48d75658c9f2c8770b6379f968ee498bc90b5e5e14f26c6e89ffd7d50a8230260db262da27fe4aa3c6c1b302fe73d9aa9a7c853e01adcf5a6313e3462d3a8407
HEAD_REF main
)
file(INSTALL "${SOURCE_PATH}/scope_guard.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -0,0 +1,7 @@
{
"name": "scope-guard",
"version-semver": "1.0.0",
"description": "A public, general, simple, and fast C++11 scope guard that defends against implicitly ignored returns and optionally enforces noexcept at compile time (in C++17), all in a SFINAE-friendly maner.",
"homepage": "https://github.com/ricab/scope_guard",
"license": "Unlicense"
}

View File

@ -7036,6 +7036,10 @@
"baseline": "1.0",
"port-version": 0
},
"scope-guard": {
"baseline": "1.0.0",
"port-version": 0
},
"scottt-debugbreak": {
"baseline": "1.0",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "84d4275d14e561b098485b74025ec3f57a2efb84",
"version-semver": "1.0.0",
"port-version": 0
}
]
}