diff --git a/ports/ring-span-lite/CONTROL b/ports/ring-span-lite/CONTROL new file mode 100644 index 0000000000..9d620b709d --- /dev/null +++ b/ports/ring-span-lite/CONTROL @@ -0,0 +1,3 @@ +Source: ring-span-lite +Version: 0.3.0 +Description: A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library diff --git a/ports/ring-span-lite/portfile.cmake b/ports/ring-span-lite/portfile.cmake new file mode 100644 index 0000000000..b9b9930548 --- /dev/null +++ b/ports/ring-span-lite/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO martinmoene/ring-span-lite + REF v0.3.0 + SHA512 5ecbfc63b4a09cc382edc2acae41a45946c9c6a18aa48e855201366b7696df7cbf46c2de1b5aa5296ae2dde4360d5abd8efdc3e3a1c3d427fbbddadab7dcfe79 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF + -DRING_SPAN_LITE_OPT_BUILD_EXAMPLES=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets( + 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 +)