From 0ab80cc66dd1cb051f30d61875f9c45a44199e9d Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 12 Oct 2021 06:05:57 +0200 Subject: [PATCH] [asio-grpc] new port (#20602) * Add asio-grpc * Migrate deprecated functions in ports/asio-grpc/portfile.cmake --- ports/asio-grpc/portfile.cmake | 26 ++++++++++++++++++++++++++ ports/asio-grpc/vcpkg.json | 29 +++++++++++++++++++++++++++++ versions/a-/asio-grpc.json | 9 +++++++++ versions/baseline.json | 4 ++++ 4 files changed, 68 insertions(+) create mode 100644 ports/asio-grpc/portfile.cmake create mode 100644 ports/asio-grpc/vcpkg.json create mode 100644 versions/a-/asio-grpc.json diff --git a/ports/asio-grpc/portfile.cmake b/ports/asio-grpc/portfile.cmake new file mode 100644 index 0000000000..7dd32692bd --- /dev/null +++ b/ports/asio-grpc/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Tradias/asio-grpc + REF v1.1.2 + SHA512 f55b219b9805f193b5673e91e58c3c5fc98957110fadf523c1729c92a06c8befe4ad58052c6e9aaabcf8327f2df31780d7e072a0923d77598974fa0145bf9e7f + HEAD_REF master +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + boost-container ASIO_GRPC_USE_BOOST_CONTAINER +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asio-grpc) + +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/asio-grpc/vcpkg.json b/ports/asio-grpc/vcpkg.json new file mode 100644 index 0000000000..2b33b17ff7 --- /dev/null +++ b/ports/asio-grpc/vcpkg.json @@ -0,0 +1,29 @@ +{ + "name": "asio-grpc", + "version": "1.1.2", + "description": "Asynchronous gRPC with Boost.Asio executors", + "homepage": "https://github.com/Tradias/asio-grpc", + "dependencies": [ + "boost-asio", + "boost-core", + "boost-intrusive", + "boost-lockfree", + "grpc", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "boost-container": { + "description": "Use Boost.Container instead of ", + "dependencies": [ + "boost-container" + ] + } + } +} diff --git a/versions/a-/asio-grpc.json b/versions/a-/asio-grpc.json new file mode 100644 index 0000000000..6da80deb3f --- /dev/null +++ b/versions/a-/asio-grpc.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "39ad0d8203c21698ba153d6951de8295954028eb", + "version": "1.1.2", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 1cb4341f35..1aaaea54a7 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -176,6 +176,10 @@ "baseline": "1.19.2", "port-version": 0 }, + "asio-grpc": { + "baseline": "1.1.2", + "port-version": 0 + }, "asiosdk": { "baseline": "2.3.3", "port-version": 3