diff --git a/ports/nats-c/CONTROL b/ports/nats-c/CONTROL new file mode 100644 index 00000000000000..d46f618d23fac6 --- /dev/null +++ b/ports/nats-c/CONTROL @@ -0,0 +1,17 @@ +Source: nats-c +Version: 2.1.0 +Homepage: https://github.com/nats-io/nats.c +Description: A C client for NATS +Default-Features: full + +Feature: tls +Build-Depends: openssl +Description: Build nats-c with TLS support + +Feature: streaming +Build-Depends: protobuf-c +Description: Build nats-c with Streaming support + +Feature: full +Build-Depends: nats-c[tls], nats-c[streaming] +Description: Build nats-c fully-featured diff --git a/ports/nats-c/portfile.cmake b/ports/nats-c/portfile.cmake new file mode 100644 index 00000000000000..ce030f28d12dfe --- /dev/null +++ b/ports/nats-c/portfile.cmake @@ -0,0 +1,40 @@ +#if("streaming" IN_LIST FEATURES) +# vcpkg_fail_port_install(MESSAGE "${PORT}[streaming] currently only supports Unix" ON_TARGET "Windows") +#endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nats-io/nats.c + REF v2.1.0 + SHA512 628e14d786e870c3c2de859d060cc035b57c75fa81e16e0eb2b88eb8e7d80762b650e733a45eeb6d4344e754f1440e260e81da91c2ad7ea586087d3647fcefdb + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + tls NATS_BUILD_WITH_TLS + streaming NATS_BUILD_STREAMING +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS ${FEATURE_OPTIONS} + -DNATS_BUILD_TLS_USE_OPENSSL_1_1_API=ON +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug) + file(COPY ${CURRENT_PACKAGES_DIR}/debug/lib/nats.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) + file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/nats.dll) + endif() + if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL release) + file(COPY ${CURRENT_PACKAGES_DIR}/lib/nats.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin) + file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/nats.dll) + endif() +endif() + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/ppconsul/CONTROL b/ports/ppconsul/CONTROL index 4902c1f0799d98..ea49156d975106 100644 --- a/ports/ppconsul/CONTROL +++ b/ports/ppconsul/CONTROL @@ -1,5 +1,5 @@ Source: ppconsul -Version: 0.4 +Version: 0.4-1 Homepage: https://github.com/oliora/ppconsul Description: A C++ client library for Consul. Consul is a distributed tool for discovering and configuring services in your infrastructure. -Build-Depends: boost-core, boost-variant, curl[openssl], json11 +Build-Depends: boost-core, boost-variant, boost-optional, boost-fusion, curl[openssl], json11 diff --git a/ports/ppconsul/portfile.cmake b/ports/ppconsul/portfile.cmake index 60da089e6cce63..50dd08c37521a6 100644 --- a/ports/ppconsul/portfile.cmake +++ b/ports/ppconsul/portfile.cmake @@ -1,5 +1,3 @@ -include(vcpkg_common_functions) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO oliora/ppconsul @@ -22,7 +20,7 @@ vcpkg_install_cmake() vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) -file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/ppconsul RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index d6c4ec8cee743e..c7cf6ca5f20c5a 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1135,6 +1135,14 @@ nanovg:x64-windows-static=ignore nanovg:x86-windows=ignore nativefiledialog:arm-uwp=fail nativefiledialog:x64-uwp=fail +nats-c:arm64-windows=fail +nats-c:arm-uwp=fail +nats-c:x64-linux=fail +nats-c:x64-osx=fail +nats-c:x64-uwp=fail +nats-c:x64-windows=fail +nats-c:x64-windows-static=fail +nats-c:x86-windows=fail netcdf-cxx4:x64-linux=ignore nethost:x64-uwp=fail nethost:arm-uwp=fail