aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ring-span-lite
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ring-span-lite')
-rw-r--r--vcpkg/ports/ring-span-lite/portfile.cmake26
-rw-r--r--vcpkg/ports/ring-span-lite/vcpkg.json16
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/ring-span-lite/portfile.cmake b/vcpkg/ports/ring-span-lite/portfile.cmake
new file mode 100644
index 0000000..0527a17
--- /dev/null
+++ b/vcpkg/ports/ring-span-lite/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/ring-span-lite
+ REF "v${VERSION}"
+ SHA512 aa3f199e4cef36ead644d9620e716c2f91bbb52fe3193919ed6aec099bc32841168eaf789c8ddc6700688a34335ad04e139822633d7e26184f511431ca4aaa12
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF
+ -DRING_SPAN_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/ring-span-lite/vcpkg.json b/vcpkg/ports/ring-span-lite/vcpkg.json
new file mode 100644
index 0000000..652ce5c
--- /dev/null
+++ b/vcpkg/ports/ring-span-lite/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "ring-span-lite",
+ "version": "0.7.0",
+ "description": "A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library",
+ "homepage": "https://github.com/martinmoene/ring-span-lite",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}