diff options
Diffstat (limited to 'vcpkg/ports/span-lite')
| -rw-r--r-- | vcpkg/ports/span-lite/portfile.cmake | 28 | ||||
| -rw-r--r-- | vcpkg/ports/span-lite/vcpkg.json | 16 |
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/span-lite/portfile.cmake b/vcpkg/ports/span-lite/portfile.cmake new file mode 100644 index 0000000..77bbdb8 --- /dev/null +++ b/vcpkg/ports/span-lite/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/span-lite
+ REF "v${VERSION}" + SHA512 6e45f23a7274f851a3faefbff8278a3bee75eae91caf0b176dbbfc644639d999a3964d6d2282a7024422b4bc75ebb91b46b6aeb645204cdca3bae05a13c6aa53 +)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSPAN_LITE_OPT_BUILD_TESTS=OFF
+ -DSPAN_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/span-lite/vcpkg.json b/vcpkg/ports/span-lite/vcpkg.json new file mode 100644 index 0000000..4032175 --- /dev/null +++ b/vcpkg/ports/span-lite/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "span-lite", + "version": "0.11.0", + "description": "A C++20-like span for C++98, C++11 and later in a single-file header-only library", + "homepage": "https://github.com/martinmoene/span-lite", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |