From bce563ed584e207fdc614f665176daf9194d5fd7 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Wed, 24 Mar 2021 20:53:27 +0100 Subject: [Influxdb-cxx] add new port (#16794) * [influxdb-cxx] add new port * add version files --- ports/influxdb-cxx/portfile.cmake | 28 ++++++++++++++++++++++++++++ ports/influxdb-cxx/vcpkg.json | 19 +++++++++++++++++++ versions/baseline.json | 4 ++++ versions/i-/influxdb-cxx.json | 9 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 ports/influxdb-cxx/portfile.cmake create mode 100644 ports/influxdb-cxx/vcpkg.json create mode 100644 versions/i-/influxdb-cxx.json diff --git a/ports/influxdb-cxx/portfile.cmake b/ports/influxdb-cxx/portfile.cmake new file mode 100644 index 000000000..cbdc50a5c --- /dev/null +++ b/ports/influxdb-cxx/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO offa/influxdb-cxx + REF v0.6.6 + SHA512 4c9a9bf7ccf430caaed088830dceda8cc4b4ec6b78187e5238c5e73f17583781d9d00e08db1011b86a4f418cdfbbfc8b000500461d013872a62096de456e47ea + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + boost INFLUXCXX_WITH_BOOST +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DINFLUXCXX_TESTING=OFF + -DINFLUXCXX_SYSTEMTEST=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/influxdb-cxx/vcpkg.json b/ports/influxdb-cxx/vcpkg.json new file mode 100644 index 000000000..a54ce1512 --- /dev/null +++ b/ports/influxdb-cxx/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "influxdb-cxx", + "version": "0.6.6", + "description": "InfluxDB C++ client library", + "homepage": "https://github.com/offa/influxdb-cxx", + "dependencies": [ + "curl" + ], + "features": { + "boost": { + "description": "Enables UDP and Unix sockets as Transport Layer", + "dependencies": [ + "boost-asio", + "boost-conversion", + "boost-property-tree" + ] + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index 51308d6ee..acb6e667b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2568,6 +2568,10 @@ "baseline": "2.0", "port-version": 0 }, + "influxdb-cxx": { + "baseline": "0.6.6", + "port-version": 0 + }, "infoware": { "baseline": "0.5.5", "port-version": 1 diff --git a/versions/i-/influxdb-cxx.json b/versions/i-/influxdb-cxx.json new file mode 100644 index 000000000..316994fa7 --- /dev/null +++ b/versions/i-/influxdb-cxx.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ed824d6b1c309c2e7e347960bfb44ab43885e7bc", + "version": "0.6.6", + "port-version": 0 + } + ] +} -- cgit v1.2.3