aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nonstd-scope-lite
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/nonstd-scope-lite
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/nonstd-scope-lite')
-rw-r--r--vcpkg/ports/nonstd-scope-lite/portfile.cmake29
-rw-r--r--vcpkg/ports/nonstd-scope-lite/vcpkg.json17
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/nonstd-scope-lite/portfile.cmake b/vcpkg/ports/nonstd-scope-lite/portfile.cmake
new file mode 100644
index 0000000..9ad733d
--- /dev/null
+++ b/vcpkg/ports/nonstd-scope-lite/portfile.cmake
@@ -0,0 +1,29 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO nonstd-lite/scope-lite
+ REF "v${VERSION}"
+ SHA512 e159d7e31e0b9690b38ad9ee22368e9b230dd89419ac4198b0f64923b42acce24c1a6ebf3fcc4e7fed8a3942bb9b2d666d8098ae1a5f35f6f099343b22f646fe
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSCOPE_LITE_OPT_BUILD_TESTS=OFF
+ -DSCOPE_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME scope-lite
+ CONFIG_PATH lib/cmake/scope-lite
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/nonstd-scope-lite/vcpkg.json b/vcpkg/ports/nonstd-scope-lite/vcpkg.json
new file mode 100644
index 0000000..60f7a1d
--- /dev/null
+++ b/vcpkg/ports/nonstd-scope-lite/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "nonstd-scope-lite",
+ "version": "0.3.0",
+ "description": "C++ standard libraries extensions (version 3) scope_exit, scope_fail, scope_success, unique_resource for C++98 and later in a single-file header-only library",
+ "homepage": "https://github.com/nonstd-lite/scope-lite",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}