From 435a9415ca61939ee0382f703009c440a8eae273 Mon Sep 17 00:00:00 2001 From: Denis Kovalchuk Date: Sun, 17 Nov 2024 11:10:02 +0300 Subject: [PATCH] [libftp] Add new port (#42124) Co-authored-by: Kai Pastor --- ports/deniskovalchuk-libftp/portfile.cmake | 28 ++++++++++++++++++++++ ports/deniskovalchuk-libftp/vcpkg.json | 22 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/d-/deniskovalchuk-libftp.json | 9 +++++++ 4 files changed, 63 insertions(+) create mode 100644 ports/deniskovalchuk-libftp/portfile.cmake create mode 100644 ports/deniskovalchuk-libftp/vcpkg.json create mode 100644 versions/d-/deniskovalchuk-libftp.json diff --git a/ports/deniskovalchuk-libftp/portfile.cmake b/ports/deniskovalchuk-libftp/portfile.cmake new file mode 100644 index 0000000000..4e71d2d075 --- /dev/null +++ b/ports/deniskovalchuk-libftp/portfile.cmake @@ -0,0 +1,28 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO deniskovalchuk/libftp + REF "v${VERSION}" + SHA512 7765c35884e1e4560e39018b15f441abac687afcb06942b0350ef21df8bf27d40283011397ce4a9e9125772bb9752180c225429b274fd6374e1a521ac2744b2e + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DLIBFTP_BUILD_TEST=OFF + -DLIBFTP_BUILD_EXAMPLE=OFF + -DLIBFTP_BUILD_CMDLINE_CLIENT=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME ftp + CONFIG_PATH "share/cmake/ftp") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/deniskovalchuk-libftp/vcpkg.json b/ports/deniskovalchuk-libftp/vcpkg.json new file mode 100644 index 0000000000..aed5950dd8 --- /dev/null +++ b/ports/deniskovalchuk-libftp/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "deniskovalchuk-libftp", + "version": "1.3.0", + "maintainers": "Denis Kovalchuk ", + "description": "A cross-platform FTP/FTPS client library based on Boost.Asio.", + "homepage": "https://github.com/deniskovalchuk/libftp", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + "boost-asio", + "boost-format", + "openssl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 940e65601c..2c7d9c93d2 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2280,6 +2280,10 @@ "baseline": "1.0.0", "port-version": 0 }, + "deniskovalchuk-libftp": { + "baseline": "1.3.0", + "port-version": 0 + }, "detours": { "baseline": "4.0.1", "port-version": 8 diff --git a/versions/d-/deniskovalchuk-libftp.json b/versions/d-/deniskovalchuk-libftp.json new file mode 100644 index 0000000000..ee214af4c2 --- /dev/null +++ b/versions/d-/deniskovalchuk-libftp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ec17b648e643d563b6f916c0d8026fb646cfb2fe", + "version": "1.3.0", + "port-version": 0 + } + ] +}