aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/scope-guard
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/scope-guard
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/scope-guard')
-rw-r--r--vcpkg/ports/scope-guard/portfile.cmake12
-rw-r--r--vcpkg/ports/scope-guard/vcpkg.json7
2 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/scope-guard/portfile.cmake b/vcpkg/ports/scope-guard/portfile.cmake
new file mode 100644
index 0000000..a9b9b1c
--- /dev/null
+++ b/vcpkg/ports/scope-guard/portfile.cmake
@@ -0,0 +1,12 @@
+# Header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ricab/scope_guard
+ REF "v${VERSION}"
+ SHA512 e2488bdfc14bd5696d3bd5909bb7355003f76258a4ab39778e17aedf338cb2ca548caf568fad93d51b602c891ba96a3c7b3ef6e21dcf4bd9cb595d01d5c063a8
+ HEAD_REF main
+)
+
+file(INSTALL "${SOURCE_PATH}/scope_guard.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/scope-guard/vcpkg.json b/vcpkg/ports/scope-guard/vcpkg.json
new file mode 100644
index 0000000..18584ef
--- /dev/null
+++ b/vcpkg/ports/scope-guard/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "scope-guard",
+ "version-semver": "1.1.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"
+}