From 98b16b5353c111371f3f4033dbb7d50b35c0a50c Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 11:43:09 +0200 Subject: [PATCH] Add KF6 frameworks, syndication6 (#10516) --- .../syndication/syndication6-6.2.0.recipe | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 kde-frameworks/syndication/syndication6-6.2.0.recipe diff --git a/kde-frameworks/syndication/syndication6-6.2.0.recipe b/kde-frameworks/syndication/syndication6-6.2.0.recipe new file mode 100644 index 000000000..4b8827d31 --- /dev/null +++ b/kde-frameworks/syndication/syndication6-6.2.0.recipe @@ -0,0 +1,89 @@ +SUMMARY="An RSS/Atom parser library" +DESCRIPTION="RSS (0.9/1.0, 0.91..2.0) and Atom (0.3 and 1.0) feeds are supported. syndication \ +offers a unified, format-agnostic view on the parsed feed, so that the using application does \ +not need to distinguish between feed formats." +HOMEPAGE="https://invent.kde.org/frameworks/syndication" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/syndication-${portVersion}.tar.xz" +CHECKSUM_SHA256="50ec3843a08ec7b185352c94b89bc2d2720ceaf17eb961a4c3da55f93d05af3c" +SOURCE_DIR="syndication-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + syndication6$secondaryArchSuffix = $portVersion + lib:libKF6Syndication$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF6Codecs$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Network$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + syndication6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6Syndication$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + syndication6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + qt6_tools${secondaryArchSuffix}_devel + devel:libKF6Codecs$secondaryArchSuffix == $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Network$secondaryArchSuffix + devel:libQt6Xml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen >= 1.9 + cmd:g++$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON \ + -DBUILD_TESTING=OFF + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libKF6Syndication + + packageEntries devel \ + $developDir \ + $dataDir/doc \ + $libDir/cmake +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + # manual tests (all pass) + build/bin/loaderutiltest + build/bin/syndicationtest + # build/bin/testlibsyndication # needs argument + # build/bin/testloader # needs argument + build/bin/testpersonimpl +}