From 9c4a648392c36c0c63e2216bb2be0e1145228c79 Mon Sep 17 00:00:00 2001 From: "xiaozhuai, Weihang Ding" <798047000@qq.com> Date: Wed, 1 Feb 2023 05:50:53 +0800 Subject: [PATCH] [string-view-lite] Modernization (#29313) * [string-view-lite] Modernization * update version database * apply suggestion * update version database * CRLF -> LF --------- Co-authored-by: Billy Robert O'Neal III --- ports/string-view-lite/portfile.cmake | 46 ++++++++++++--------------- ports/string-view-lite/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/s-/string-view-lite.json | 5 +++ 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/ports/string-view-lite/portfile.cmake b/ports/string-view-lite/portfile.cmake index e530ee5c41..43a488718e 100644 --- a/ports/string-view-lite/portfile.cmake +++ b/ports/string-view-lite/portfile.cmake @@ -1,28 +1,22 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO martinmoene/string-view-lite +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO martinmoene/string-view-lite REF v1.7.0 SHA512 9dd8d2ad838275b1d5418520acf0f215dc586ff40f2dac7a2e4fd845aae5eb3663ce81bc6117df50b0a68f2b8152f3d3ccb0d611728af47bc1b11286328125b5 -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - -DSTRING_VIEW_LITE_OPT_BUILD_TESTS=OFF - -DSTRING_VIEW_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 -) +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DSTRING_VIEW_LITE_OPT_BUILD_TESTS=OFF + -DSTRING_VIEW_LITE_OPT_BUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/string-view-lite/vcpkg.json b/ports/string-view-lite/vcpkg.json index f3654e1d87..7db3f67a0b 100644 --- a/ports/string-view-lite/vcpkg.json +++ b/ports/string-view-lite/vcpkg.json @@ -1,6 +1,7 @@ { "name": "string-view-lite", "version": "1.7.0", + "port-version": 1, "description": "A C++17-like string_view for C++98, C++11 and later in a single-file header-only library", "license": "BSL-1.0", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index 12689508fd..a6d727933e 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7414,7 +7414,7 @@ }, "string-view-lite": { "baseline": "1.7.0", - "port-version": 0 + "port-version": 1 }, "strong-type": { "baseline": "8", diff --git a/versions/s-/string-view-lite.json b/versions/s-/string-view-lite.json index edbbd06c70..2e06e69f85 100644 --- a/versions/s-/string-view-lite.json +++ b/versions/s-/string-view-lite.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "ef393f08f15d4f962c5d9d37c4c2036dff02be98", + "version": "1.7.0", + "port-version": 1 + }, { "git-tree": "678c99fe335fc105cae78ddd0899c34ab12815ea", "version": "1.7.0",