aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/resultlib
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/resultlib
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/resultlib')
-rw-r--r--vcpkg/ports/resultlib/portfile.cmake13
-rw-r--r--vcpkg/ports/resultlib/vcpkg.json9
2 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/resultlib/portfile.cmake b/vcpkg/ports/resultlib/portfile.cmake
new file mode 100644
index 0000000..54dbc43
--- /dev/null
+++ b/vcpkg/ports/resultlib/portfile.cmake
@@ -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")
diff --git a/vcpkg/ports/resultlib/vcpkg.json b/vcpkg/ports/resultlib/vcpkg.json
new file mode 100644
index 0000000..9e26831
--- /dev/null
+++ b/vcpkg/ports/resultlib/vcpkg.json
@@ -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"
+}