From 44eff6b7b523c2e02dc33c18b3196face23921f2 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Fri, 12 Jul 2019 04:09:48 +1000 Subject: [PATCH] [etcdcpp] Add new port (#6999) * [etcdpp] Add new port * [ports/etcdpp/CONTROL] Added homepage * [etcdpp] Change header namespace * [etcdcpp] Change target and port names * rename changes * change version to date offscale-libetcd-cpp is a rolling-release port --- ports/offscale-libetcd-cpp/CONTROL | 5 +++++ ports/offscale-libetcd-cpp/portfile.cmake | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ports/offscale-libetcd-cpp/CONTROL create mode 100644 ports/offscale-libetcd-cpp/portfile.cmake diff --git a/ports/offscale-libetcd-cpp/CONTROL b/ports/offscale-libetcd-cpp/CONTROL new file mode 100644 index 0000000000..ec080142ce --- /dev/null +++ b/ports/offscale-libetcd-cpp/CONTROL @@ -0,0 +1,5 @@ +Source: offscale-libetcd-cpp +Version: 2019-07-10 +Homepage: https://github.com/offscale/libetcd-cpp +Description: A C++ client library for etcd. etcd is a distributed, reliable key-value store. +Build-Depends: grpc, protobuf diff --git a/ports/offscale-libetcd-cpp/portfile.cmake b/ports/offscale-libetcd-cpp/portfile.cmake new file mode 100644 index 0000000000..ffe4519f89 --- /dev/null +++ b/ports/offscale-libetcd-cpp/portfile.cmake @@ -0,0 +1,19 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO offscale/libetcd-cpp + REF 8607d8d7080c6eb447bc41b799a24bfdb87cf638 + SHA512 9bf4bf14fd52f4f6bbf8cf68de61e6a19eeffbdc501f05c8f614b5f13f206410884afd7fe226a077448e58e02990c65a6b27ee895ed34ba5ee701abe0500b875 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) +vcpkg_install_cmake() + +file(INSTALL ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/offscale-libetcd-cpp RENAME copyright) + +vcpkg_copy_pdbs()