From 6b9c9a42f6822b0744a38f65718eb659b3b1a5c3 Mon Sep 17 00:00:00 2001 From: kiwixz Date: Mon, 16 Jan 2023 21:46:59 +0100 Subject: [PATCH] [strong-type] add port (#28937) --- ports/strong-type/portfile.cmake | 12 ++++++++++++ ports/strong-type/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/s-/strong-type.json | 9 +++++++++ 4 files changed, 42 insertions(+) create mode 100644 ports/strong-type/portfile.cmake create mode 100644 ports/strong-type/vcpkg.json create mode 100644 versions/s-/strong-type.json diff --git a/ports/strong-type/portfile.cmake b/ports/strong-type/portfile.cmake new file mode 100644 index 0000000000..9fd63f0ca8 --- /dev/null +++ b/ports/strong-type/portfile.cmake @@ -0,0 +1,12 @@ +vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH + REPO "rollbear/strong_type" + REF "v8" + SHA512 "d9bd43c090aac6d36183f70f6cc066484357e997b1b2081114ecb459f80cd990ad31c9141948bf2a9d12ac504da77331a470f2f0eaadc57fbfc9bec6c4de6464" +) + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "strong_type" CONFIG_PATH "lib/cmake/strong_type") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright") diff --git a/ports/strong-type/vcpkg.json b/ports/strong-type/vcpkg.json new file mode 100644 index 0000000000..3051a2b18f --- /dev/null +++ b/ports/strong-type/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "strong-type", + "version": "8", + "description": "An additive strong typedef library for C++14/17/20", + "homepage": "https://github.com/rollbear/strong_type", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index fdb993101c..fbb26ca9c6 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7400,6 +7400,10 @@ "baseline": "1.6.0", "port-version": 0 }, + "strong-type": { + "baseline": "8", + "port-version": 0 + }, "stronk": { "baseline": "0.3.1", "port-version": 0 diff --git a/versions/s-/strong-type.json b/versions/s-/strong-type.json new file mode 100644 index 0000000000..0fb3641a1f --- /dev/null +++ b/versions/s-/strong-type.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "017b73a108f38fb46a32be946809985a6b1ab96c", + "version": "8", + "port-version": 0 + } + ] +}