From ab0f7f410f1f538cc98f9f4acbd83f786223d671 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 13:32:30 +0200 Subject: [PATCH] Add KF6 frameworks, baloo6, add KF5 compat (#10527) --- kde-frameworks/baloo/baloo-5.115.0.recipe | 11 +-- kde-frameworks/baloo/baloo6-6.2.0.recipe | 113 ++++++++++++++++++++++ 2 files changed, 117 insertions(+), 7 deletions(-) create mode 100644 kde-frameworks/baloo/baloo6-6.2.0.recipe diff --git a/kde-frameworks/baloo/baloo-5.115.0.recipe b/kde-frameworks/baloo/baloo-5.115.0.recipe index 8fcf133c1..424475e6d 100644 --- a/kde-frameworks/baloo/baloo-5.115.0.recipe +++ b/kde-frameworks/baloo/baloo-5.115.0.recipe @@ -5,7 +5,7 @@ their contents which [you can search](./docs/user/searching.md)." HOMEPAGE="https://invent.kde.org/frameworks/baloo" COPYRIGHT="2010-2024 KDE Organisation" LICENSE="GNU LGPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/baloo-v$portVersion.tar.bz2" CHECKSUM_SHA256="158a8cd5e3fede7c1d9f4ed1a44e4cc228f4c1ed890161bff9e98c1b15e50af8" SOURCE_DIR="baloo-v$portVersion" @@ -84,11 +84,6 @@ BUILD_PREREQUIRES=" cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 " -PATCH() -{ - sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml -} - BUILD() { cmake -Bbuild -S. $cmakeDirArgs \ @@ -96,7 +91,9 @@ BUILD() -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ - -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_TESTING=OFF \ + -DBUILD_INDEXER_SERVICE=OFF make -C build $jobArgs } diff --git a/kde-frameworks/baloo/baloo6-6.2.0.recipe b/kde-frameworks/baloo/baloo6-6.2.0.recipe new file mode 100644 index 000000000..b329e824c --- /dev/null +++ b/kde-frameworks/baloo/baloo6-6.2.0.recipe @@ -0,0 +1,113 @@ +SUMMARY="A framework for searching and managing metadata" +DESCRIPTION="Baloo is the file indexing and file search framework for KDE Plasma. It focuses on \ +speed and a very small memory footprint. It maintains an index of your files and optionally \ +their contents which [you can search](./docs/user/searching.md)." +HOMEPAGE="https://invent.kde.org/frameworks/baloo" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/baloo-$portVersion.tar.xz" +CHECKSUM_SHA256="1ea413b9dbada7d0646a1f8dc3f0688928c266e6388528cfd05d4c079a7e22a8" +SOURCE_DIR="baloo-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + baloo6$secondaryArchSuffix = $portVersion + lib:libKF6Baloo$secondaryArchSuffix = $libVersionCompat + lib:libKF6BalooEngine$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF6ConfigCore$secondaryArchSuffix + lib:libKF6CoreAddons$secondaryArchSuffix + lib:libKF6FileMetaData$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libKF6Solid$secondaryArchSuffix + lib:liblmdb$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6DBus$secondaryArchSuffix + " + +PROVIDES_devel=" + baloo6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6Baloo$secondaryArchSuffix = $libVersionCompat + devel:libKF6BalooEngine$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + baloo6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + qt6_tools${secondaryArchSuffix}_devel + devel:libKF6Bookmarks$secondaryArchSuffix == $portVersion + devel:libKF6Codecs$secondaryArchSuffix == $portVersion + devel:libKF6Completion$secondaryArchSuffix == $portVersion + devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion + devel:libKF6ConfigWidgets$secondaryArchSuffix == $portVersion + devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion + devel:libKF6Crash$secondaryArchSuffix == $portVersion + devel:libKF6DbusAddons$secondaryArchSuffix == $portVersion + devel:libKF6FileMetaData$secondaryArchSuffix == $portVersion + devel:libKF6I18n$secondaryArchSuffix == $portVersion + devel:libKF6IdleTime$secondaryArchSuffix == $portVersion + devel:libKF6ItemViews$secondaryArchSuffix == $portVersion + devel:libKF6JobWidgets$secondaryArchSuffix == $portVersion + devel:libKF6KIOCore$secondaryArchSuffix == $portVersion + devel:libKF6Service$secondaryArchSuffix == $portVersion + devel:libKF6Solid$secondaryArchSuffix == $portVersion + devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion + devel:libKF6WindowSystem$secondaryArchSuffix == $portVersion + devel:libKF6XmlGui$secondaryArchSuffix == $portVersion + devel:liblmdb$secondaryArchSuffix + devel:libQt6Core$secondaryArchSuffix + devel:libQt6DBus$secondaryArchSuffix + devel:libQt6Gui$secondaryArchSuffix + devel:libQt6Network$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libQt6Quick$secondaryArchSuffix + devel:libQt6Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen >= 1.9 + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON \ + -DBUILD_TESTING=OFF + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLibs \ + libKF6Baloo \ + libKF6BalooEngine + fixPkgconfig + + packageEntries devel \ + $libDir/cmake \ + $dataDir/doc \ + $developDir +}