From 338d300d3e99dea2c40c7c555437a6ff5a5005b3 Mon Sep 17 00:00:00 2001 From: Adolfo Solis Date: Tue, 16 May 2023 11:37:37 -0600 Subject: [PATCH] [fineftp] add new port fineftp-v1.3.4 (#31435) * [fineftp] Add package v1.3.4 * [fineftp] Updated license * [fineftp] database updated * [fineftp] Fix git tree * [fineftp] Disable Android platform * [fineftp] Updated database * Update ports/fineftp/portfile.cmake Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com> * Update ports/fineftp/portfile.cmake Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com> * [fineftp] Add EOF * [fineftp] Update database * [fineftp] Remove white line * [fineftp] Update database * [fineftp] Remove empty line * [fineftp] Update database --------- Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com> --- ports/fineftp/asio.patch | 13 +++++++++++++ ports/fineftp/portfile.cmake | 26 ++++++++++++++++++++++++++ ports/fineftp/vcpkg.json | 20 ++++++++++++++++++++ versions/baseline.json | 4 ++++ versions/f-/fineftp.json | 9 +++++++++ 5 files changed, 72 insertions(+) create mode 100644 ports/fineftp/asio.patch create mode 100644 ports/fineftp/portfile.cmake create mode 100644 ports/fineftp/vcpkg.json create mode 100644 versions/f-/fineftp.json diff --git a/ports/fineftp/asio.patch b/ports/fineftp/asio.patch new file mode 100644 index 0000000000..a5d008f4be --- /dev/null +++ b/ports/fineftp/asio.patch @@ -0,0 +1,13 @@ +diff --git a/fineftp-server/CMakeLists.txt b/fineftp-server/CMakeLists.txt +index e4e3152..9e609d9 100644 +--- a/fineftp-server/CMakeLists.txt ++++ b/fineftp-server/CMakeLists.txt +@@ -10,7 +10,7 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden) + set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + + find_package(Threads REQUIRED) +-find_package(asio REQUIRED) ++find_package(asio CONFIG REQUIRED) + + # Include GenerateExportHeader that will create export macros for us + include(GenerateExportHeader) diff --git a/ports/fineftp/portfile.cmake b/ports/fineftp/portfile.cmake new file mode 100644 index 0000000000..c8738520fc --- /dev/null +++ b/ports/fineftp/portfile.cmake @@ -0,0 +1,26 @@ +#Get release from GitHub +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO eclipse-ecal/fineftp-server + REF "v${VERSION}" + SHA512 dcced2cf743434a55314ad661ca729efc1c4883ae0c0883335f43a12ed47568ebcb50d233dab8a1410bb526587b24f1cf19938241bf649cfe54b11ffe264124b + HEAD_REF master + PATCHES + asio.patch +) + +# Configure +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME fineftp + CONFIG_PATH lib/cmake/fineftp +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/ports/fineftp/vcpkg.json b/ports/fineftp/vcpkg.json new file mode 100644 index 0000000000..60b9832f29 --- /dev/null +++ b/ports/fineftp/vcpkg.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "name": "fineftp", + "version": "1.3.4", + "description": "FineFTP is a minimal FTP server library for Windows and Unix flavors.", + "homepage": "https://github.com/eclipse-ecal/fineftp-server", + "license": "MIT", + "supports": "!uwp & !android", + "dependencies": [ + "asio", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 32f7e47b3c..5f1599d105 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2480,6 +2480,10 @@ "baseline": "2019-12-19", "port-version": 2 }, + "fineftp": { + "baseline": "1.3.4", + "port-version": 0 + }, "fixed-string": { "baseline": "0.1.1", "port-version": 0 diff --git a/versions/f-/fineftp.json b/versions/f-/fineftp.json new file mode 100644 index 0000000000..44056b036a --- /dev/null +++ b/versions/f-/fineftp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "379dd5cfe0c3cad96197e14aa9782daf51daca3d", + "version": "1.3.4", + "port-version": 0 + } + ] +}