[resultlib] Add new port (#44531)

Co-authored-by: Mengna-Li <543250287@qq.com>
This commit is contained in:
Guillermo Calvo
2025-03-27 17:47:12 +01:00
committed by GitHub
parent ac8f14ddd4
commit 2c519763ac
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO guillermocalvo/resultlib
REF "${VERSION}"
SHA512 a18522e84bb27c76993748909a9311eb479d0466ee11839b1d3d2ac7469c13534f332c17a6582e29a3de28bd34d0cc10045f2b7bb8e1894f5f345c367cd8e947
HEAD_REF main
)
file(COPY "${SOURCE_PATH}/src/result.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/resultlib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE" "${SOURCE_PATH}/NOTICE")

View File

@@ -0,0 +1,9 @@
{
"name": "resultlib",
"version-semver": "1.0.0",
"maintainers": "Guillermo Calvo <guillermo@guillermo.dev>",
"description": "Elegant error handling in C",
"homepage": "https://github.com/guillermocalvo/resultlib/",
"documentation": "https://result.guillermo.dev/",
"license": "Apache-2.0"
}

View File

@@ -8100,6 +8100,10 @@
"baseline": "0.7.4",
"port-version": 0
},
"resultlib": {
"baseline": "1.0.0",
"port-version": 0
},
"rexo": {
"baseline": "0.2.2",
"port-version": 0

View File

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