From 07e0d8cb4ffd2c2c61e69a0e4e4135dc9fbf2b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wr=C3=B3bel?= Date: Thu, 29 Sep 2022 23:28:51 +0200 Subject: [PATCH] [libofx] new port (#26864) * [libofx] new port * [libofx] update version * [libofx] update features * [libofx] update versions * [libofx] no support for UWP for now * [libofx] update versions * [libofx] update website * [libofx] update versions * [libofx] add license field * [libofx] update versions * [libofx] add missing newline * [libofx] update versions --- ports/libofx/portfile.cmake | 36 ++++++++++++++++++++++++++++++++++++ ports/libofx/vcpkg.json | 36 ++++++++++++++++++++++++++++++++++++ versions/baseline.json | 4 ++++ versions/l-/libofx.json | 9 +++++++++ 4 files changed, 85 insertions(+) create mode 100644 ports/libofx/portfile.cmake create mode 100644 ports/libofx/vcpkg.json create mode 100644 versions/l-/libofx.json diff --git a/ports/libofx/portfile.cmake b/ports/libofx/portfile.cmake new file mode 100644 index 0000000000..32c6135b3a --- /dev/null +++ b/ports/libofx/portfile.cmake @@ -0,0 +1,36 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libofx/libofx + REF 0.10.8 + SHA512 e241a9ad766a91f53a2b65c316e87ee43df9173b25904d1af05c2ce491c8d781278333c20206751787f540c7bc9880b32a41a4646714fd1586f22801394d89a3 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "iconv" ENABLE_ICONV + "ofxdump" ENABLE_OFXDUMP + "ofx2qif" ENABLE_OFX2QIF +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DENABLE_OFXCONNECT=OFF # depends on libxml++ ABI 2.6, while vcpkg ships ABI 4.0. See https://libxmlplusplus.github.io/libxmlplusplus/#abi-versions + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_fixup_pkgconfig() +vcpkg_cmake_config_fixup(PACKAGE_NAME LibOFX CONFIG_PATH lib/cmake/libofx) +vcpkg_copy_pdbs() + +list(REMOVE_ITEM FEATURES core iconv) +if(FEATURES) + vcpkg_copy_tools(TOOL_NAMES ${FEATURES} AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/ports/libofx/vcpkg.json b/ports/libofx/vcpkg.json new file mode 100644 index 0000000000..39ec14490b --- /dev/null +++ b/ports/libofx/vcpkg.json @@ -0,0 +1,36 @@ +{ + "name": "libofx", + "version": "0.10.8", + "description": "OFX banking protocol abstraction library", + "homepage": "https://github.com/libofx/libofx", + "license": "GPL-2.0-only", + "supports": "!uwp", + "dependencies": [ + "libopensp", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "iconv" + ], + "features": { + "iconv": { + "description": "Builds with ICONV support for encoding conversion", + "dependencies": [ + "libiconv" + ] + }, + "ofx2qif": { + "description": "Enables OFX file to QIF (Quicken Interchange Format) file converter" + }, + "ofxdump": { + "description": "Enables ofxdump utility which prints, in human readable form, everything the library understands about a file" + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index 4eefee2c69..77432f258e 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3980,6 +3980,10 @@ "baseline": "2.4.0", "port-version": 9 }, + "libofx": { + "baseline": "0.10.8", + "port-version": 0 + }, "libogg": { "baseline": "1.3.5", "port-version": 0 diff --git a/versions/l-/libofx.json b/versions/l-/libofx.json new file mode 100644 index 0000000000..a041ab5d29 --- /dev/null +++ b/versions/l-/libofx.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "359386dc0b18eea302535a62b8d429325c457ebc", + "version": "0.10.8", + "port-version": 0 + } + ] +}