From ec547c15d6b9b426c1d9666adc9a79fd2c46d79e Mon Sep 17 00:00:00 2001 From: Tian L <60599517+tian-lt@users.noreply.github.com> Date: Fri, 1 Jul 2022 04:03:18 +0800 Subject: [PATCH] [proxy] Add new port (#25445) * new port - proxy * replace deprecated tools * update vcpkg.json * resolve comments * run ./vcpkg x-add-version --all * update description * update git-tree * add quotes * run vcpkg x-add-version --all --- ports/proxy/portfile.cmake | 19 +++++++++++++++++++ ports/proxy/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/p-/proxy.json | 9 +++++++++ 4 files changed, 49 insertions(+) create mode 100644 ports/proxy/portfile.cmake create mode 100644 ports/proxy/vcpkg.json create mode 100644 versions/p-/proxy.json diff --git a/ports/proxy/portfile.cmake b/ports/proxy/portfile.cmake new file mode 100644 index 00000000000..ef7321cf2c4 --- /dev/null +++ b/ports/proxy/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO microsoft/proxy + REF release/1.0.1 + SHA512 5822064b373d3da8cea884d0c727e98d988252a7324ea9b78fa63fc86ee6afd73852a49f3685842345b86d625380140f80998263a6c8150fe66a30d6ba7e928a + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/proxy/vcpkg.json b/ports/proxy/vcpkg.json new file mode 100644 index 00000000000..602cf0dd3d6 --- /dev/null +++ b/ports/proxy/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "proxy", + "version": "1.0.1", + "description": "A single-header C++20 library that facilitates runtime polymorphism.", + "homepage": "https://github.com/microsoft/proxy", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index dca2fabae53..76b52743cf9 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5648,6 +5648,10 @@ "baseline": "1.7.1", "port-version": 0 }, + "proxy": { + "baseline": "1.0.1", + "port-version": 0 + }, "proxygen": { "baseline": "2022.03.21.00", "port-version": 2 diff --git a/versions/p-/proxy.json b/versions/p-/proxy.json new file mode 100644 index 00000000000..3b227066153 --- /dev/null +++ b/versions/p-/proxy.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f0e6617956cb7c1b38369086d9615ccaad354729", + "version": "1.0.1", + "port-version": 0 + } + ] +}