From ee1531ce6c2c374c3f2ec9a919f223ab3a8deeb1 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Fri, 4 Feb 2022 13:47:41 +1100 Subject: [PATCH] [c89stringutils] New port (#22904) * [ports/c89stringutils] Init * `./vcpkg x-add-version --all --overwrite-version` * [versions/c-/c89stringutils.json] Init --- ports/c89stringutils/portfile.cmake | 18 ++++++++++++++++++ ports/c89stringutils/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/c-/c89stringutils.json | 9 +++++++++ 4 files changed, 48 insertions(+) create mode 100644 ports/c89stringutils/portfile.cmake create mode 100644 ports/c89stringutils/vcpkg.json create mode 100644 versions/c-/c89stringutils.json diff --git a/ports/c89stringutils/portfile.cmake b/ports/c89stringutils/portfile.cmake new file mode 100644 index 00000000000000..ae15441cb25e53 --- /dev/null +++ b/ports/c89stringutils/portfile.cmake @@ -0,0 +1,18 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO offscale/c89stringutils + REF 375c87aaf50a945b17a76727f3314eb217897caf + SHA512 395d942a133209daf510094814830e35daf2047c35b0ff15b17051d7095e4598fd830e0e7f763cac6929b867ff3b0c03c5350c4c3cfc68ed98b69c9c68c04be0 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DBUILD_TESTS=OFF" +) +vcpkg_cmake_install() +file(INSTALL "${SOURCE_PATH}/cmake/LICENSE.txt" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/c89stringutils" + RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") diff --git a/ports/c89stringutils/vcpkg.json b/ports/c89stringutils/vcpkg.json new file mode 100644 index 00000000000000..7a14d20460ba8e --- /dev/null +++ b/ports/c89stringutils/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "c89stringutils", + "version": "0.0.1", + "description": "string functions from newer standards / common non-standards for C89", + "license": "Apache-2.0 OR MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 8ff9f6eda8b275..dd98f52281e3e8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1200,6 +1200,10 @@ "baseline": "2021-07-18", "port-version": 1 }, + "c89stringutils": { + "baseline": "0.0.1", + "port-version": 0 + }, "caf": { "baseline": "0.18.5", "port-version": 0 diff --git a/versions/c-/c89stringutils.json b/versions/c-/c89stringutils.json new file mode 100644 index 00000000000000..7d7aa3a41460ed --- /dev/null +++ b/versions/c-/c89stringutils.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "9c5dcb3c6cf4442e2fdcb4cdea39f512db0ead54", + "version": "0.0.1", + "port-version": 0 + } + ] +}