aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/expected-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/expected-lite
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/expected-lite')
-rw-r--r--vcpkg/ports/expected-lite/portfile.cmake27
-rw-r--r--vcpkg/ports/expected-lite/vcpkg.json17
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/expected-lite/portfile.cmake b/vcpkg/ports/expected-lite/portfile.cmake
new file mode 100644
index 0000000..e5c18e7
--- /dev/null
+++ b/vcpkg/ports/expected-lite/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/expected-lite
+ REF "v${VERSION}"
+ SHA512 c12d9d30dc137614ea0934dae405e4d16934aac0081987458347d7ecd30d915028ed2dbd3c2214ffcf73f0c0a2600d6e5f2fbd0aa66b4763f5a308d5c3e18611
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DEXPECTED_LITE_OPT_BUILD_TESTS=OFF
+ -DEXPECTED_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/${PORT}
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug"
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/expected-lite/vcpkg.json b/vcpkg/ports/expected-lite/vcpkg.json
new file mode 100644
index 0000000..61c2794
--- /dev/null
+++ b/vcpkg/ports/expected-lite/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "expected-lite",
+ "version": "0.9.0",
+ "description": "Expected objects in C++11 and later in a single-file header-only library",
+ "homepage": "https://github.com/martinmoene/expected-lite",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}