From 8941576c1931dec175f94fe2edfcadb647c3f343 Mon Sep 17 00:00:00 2001 From: Pravila Date: Thu, 19 Oct 2023 18:51:28 +0100 Subject: [PATCH] [pravila00-enum-string] New port (#34518) * Add pravila00-enum-string * Format vcpkg.json * Add version * Add version file * Add missing comma * Fix version * Update ports/pravila00-enum-string/portfile.cmake Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Update ports/pravila00-enum-string/portfile.cmake Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Update ports/pravila00-enum-string/vcpkg.json Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Update ports/pravila00-enum-string/portfile.cmake Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Rename port to enum-string * Add version for enum-string * Fix port name * Update version * Update port name * Add version --------- Co-authored-by: Pablo Rodriguez Avila Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> --- ports/pravila00-enum-string/portfile.cmake | 13 +++++++++++++ ports/pravila00-enum-string/vcpkg.json | 7 +++++++ versions/baseline.json | 4 ++++ versions/p-/pravila00-enum-string.json | 9 +++++++++ 4 files changed, 33 insertions(+) create mode 100644 ports/pravila00-enum-string/portfile.cmake create mode 100644 ports/pravila00-enum-string/vcpkg.json create mode 100644 versions/p-/pravila00-enum-string.json diff --git a/ports/pravila00-enum-string/portfile.cmake b/ports/pravila00-enum-string/portfile.cmake new file mode 100644 index 0000000000..5a099731d5 --- /dev/null +++ b/ports/pravila00-enum-string/portfile.cmake @@ -0,0 +1,13 @@ +# Header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Pravila00/enum-string + REF 3eec46f5520c287ee46692ea1d41833cbe0d80f2 + SHA512 5b29c27b8ceb358bae5a2b4fb5d198b7b4cd8a7c9926bd7685c27650da5cda9f6dc85b6a9694fe151d03b22e3230d5f3faf9143e865dffc0795b2952fca5fc0f + HEAD_REF main +) + +file(COPY "${SOURCE_PATH}/EnumString.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/pravila00-enum-string/vcpkg.json b/ports/pravila00-enum-string/vcpkg.json new file mode 100644 index 0000000000..a1afb14d86 --- /dev/null +++ b/ports/pravila00-enum-string/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "pravila00-enum-string", + "version-date": "2023-10-16", + "description": "A utility to provide stringizing support for C++ enums.", + "homepage": "https://github.com/Pravila00/enum-string", + "license": "Unlicense" +} diff --git a/versions/baseline.json b/versions/baseline.json index 350d0602f5..ee4ebe9c3b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6628,6 +6628,10 @@ "baseline": "1.3", "port-version": 7 }, + "pravila00-enum-string": { + "baseline": "2023-10-16", + "port-version": 0 + }, "pravila00-make-vector": { "baseline": "2023-04-10", "port-version": 0 diff --git a/versions/p-/pravila00-enum-string.json b/versions/p-/pravila00-enum-string.json new file mode 100644 index 0000000000..0a3a67d040 --- /dev/null +++ b/versions/p-/pravila00-enum-string.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a5172f6fa4786d4b0d4f41d843e24c04799a2d85", + "version-date": "2023-10-16", + "port-version": 0 + } + ] +}