[srpc] add port of sogou/srpc (#16295)

This commit is contained in:
DengJun 2021-08-28 03:50:41 +08:00 committed by GitHub
parent fefb2c12b6
commit 646e573f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 0 deletions

24
ports/srpc/portfile.cmake Normal file
View File

@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sogou/srpc
REF v0.9.3
SHA512 e64cfec279f833ad24b1942ef2b572fc4bd3bfc5f9d623cd5d25b3c869d2ff9b35250cc814e8aaeb919ebed0929c44407eb9abb2e6793cfdc967708210f5f7e3
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/srpc)
vcpkg_copy_pdbs()
vcpkg_copy_tools(
TOOL_NAMES srpc_generator
AUTO_CLEAN
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

22
ports/srpc/vcpkg.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "srpc",
"version-semver": "0.9.3",
"description": "RPC based on Sogou C++ Workflow",
"homepage": "https://github.com/sogou/srpc",
"dependencies": [
"lz4",
"openssl",
"protobuf",
"snappy",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"workflow",
"zlib"
]
}

View File

@ -6116,6 +6116,10 @@
"baseline": "0.6.4",
"port-version": 0
},
"srpc": {
"baseline": "0.9.3",
"port-version": 0
},
"starlink-ast": {
"baseline": "9.2.4",
"port-version": 1

9
versions/s-/srpc.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7f8e905bb42ba10b9076c4fca512933f4e3171e5",
"version-semver": "0.9.3",
"port-version": 0
}
]
}