aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/optional-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/optional-lite
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/optional-lite')
-rw-r--r--vcpkg/ports/optional-lite/portfile.cmake28
-rw-r--r--vcpkg/ports/optional-lite/vcpkg.json16
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/optional-lite/portfile.cmake b/vcpkg/ports/optional-lite/portfile.cmake
new file mode 100644
index 0000000..9d7d2a5
--- /dev/null
+++ b/vcpkg/ports/optional-lite/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/optional-lite
+ REF "v${VERSION}"
+ SHA512 6ec7dbd11947376cc46502cdab866e171fca7123b317887889022d22b003e4fd96d26816046e8e24b1b83fb5190ae6232cbbacfcb20fcb78200878bd73d7adc4
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DOPTIONAL_LITE_OPT_BUILD_TESTS=OFF
+ -DOPTIONAL_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"
+)
+
+file(INSTALL
+ "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
+)
diff --git a/vcpkg/ports/optional-lite/vcpkg.json b/vcpkg/ports/optional-lite/vcpkg.json
new file mode 100644
index 0000000..fe692d6
--- /dev/null
+++ b/vcpkg/ports/optional-lite/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "optional-lite",
+ "version": "3.6.0",
+ "description": "A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library",
+ "homepage": "https://github.com/martinmoene/optional-lite",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}