diff options
| -rw-r--r-- | ports/rest-rpc/CONTROL | 5 | ||||
| -rw-r--r-- | ports/rest-rpc/portfile.cmake | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/ports/rest-rpc/CONTROL b/ports/rest-rpc/CONTROL new file mode 100644 index 000000000..92f622e93 --- /dev/null +++ b/ports/rest-rpc/CONTROL @@ -0,0 +1,5 @@ +Source: rest-rpc +Version: 0.07 +Homepage: https://github.com/qicosmos/rest_rpc +Description: c++11, high performance, cross platform, easy to use rpc framework +Build-Depends: asio diff --git a/ports/rest-rpc/portfile.cmake b/ports/rest-rpc/portfile.cmake new file mode 100644 index 000000000..54872c175 --- /dev/null +++ b/ports/rest-rpc/portfile.cmake @@ -0,0 +1,25 @@ +# header-only library + +set(RESTRPC_VERSION V0.07) +set(RESTRPC_HASH 148152776c8c4f16e404c62ab3f46618e1817c0b4b186dbcc399c859efd110ed5a207bf56e961c312f80844f696f597068e0abc00e426409d50a2889d30c6d8e) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rest-rpc-${RESTRPC_VERSION}) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO qicosmos/rest_rpc + REF ${RESTRPC_VERSION} + SHA512 ${RESTRPC_HASH} + HEAD_REF master +) + +file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include) +file(INSTALL ${SOURCE_PATH}/third/msgpack/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +vcpkg_replace_string( + "${CURRENT_PACKAGES_DIR}/include/rest_rpc.hpp" + "#include \"rest_rpc/rpc_server.h\"" + "#define ASIO_STANDALONE\n#include \"rest_rpc/rpc_server.h\"" +) + +# # Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
