diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/absent | |
Diffstat (limited to 'vcpkg/ports/absent')
| -rw-r--r-- | vcpkg/ports/absent/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/absent/vcpkg.json | 17 |
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/absent/portfile.cmake b/vcpkg/ports/absent/portfile.cmake new file mode 100644 index 0000000..d0a4eb3 --- /dev/null +++ b/vcpkg/ports/absent/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rvarago/absent
+ REF 0.3.1
+ SHA512 c7b7d29422ef8afc48e3093496e1dd055cfe9969ae037c2b06ea70fe4283e7a7e9129171efaa257e909c535e24df5861b992b24b00ec03f965730e6a22e13015
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=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}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+)
+
+file(INSTALL
+ "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
+)
+
diff --git a/vcpkg/ports/absent/vcpkg.json b/vcpkg/ports/absent/vcpkg.json new file mode 100644 index 0000000..3034fe3 --- /dev/null +++ b/vcpkg/ports/absent/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "absent", + "version": "0.3.1", + "port-version": 3, + "description": "A small C++17 library meant to simplify the composition of nullable types in a generic, type-safe, and declarative way", + "homepage": "https://github.com/rvarago/absent", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |