aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/offscale-libetcd-cpp/portfile.cmake')
-rw-r--r--vcpkg/ports/offscale-libetcd-cpp/portfile.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake b/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake
new file mode 100644
index 0000000..a299682
--- /dev/null
+++ b/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake
@@ -0,0 +1,20 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO offscale/libetcd-cpp
+ REF 8607d8d7080c6eb447bc41b799a24bfdb87cf638
+ SHA512 9bf4bf14fd52f4f6bbf8cf68de61e6a19eeffbdc501f05c8f614b5f13f206410884afd7fe226a077448e58e02990c65a6b27ee895ed34ba5ee701abe0500b875
+ HEAD_REF master
+ PATCHES
+ fix-dependency-grpc.patch
+ install-debug.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE # see https://github.com/microsoft/vcpkg/pull/21168#issuecomment-961588989 why
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME etcdcpp)
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)