From 9b4a8a4bd031c27fdb9beb5c0576473e6dd7b1d0 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 30 May 2024 10:05:43 +0200 Subject: [PATCH] Add KF6 frameworks, purpose6 (#10550) --- kde-frameworks/purpose/purpose6-6.2.0.recipe | 128 +++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 kde-frameworks/purpose/purpose6-6.2.0.recipe diff --git a/kde-frameworks/purpose/purpose6-6.2.0.recipe b/kde-frameworks/purpose/purpose6-6.2.0.recipe new file mode 100644 index 000000000..478e8d9a7 --- /dev/null +++ b/kde-frameworks/purpose/purpose6-6.2.0.recipe @@ -0,0 +1,128 @@ +SUMMARY="Library for providing abstractions to get the developer's purposes fulfilled" +DESCRIPTION="This framework offers the possibility to create integrate services and \ +actions on any application without having to implement them specifically. Purpose \ +will offer them mechanisms to list the different alternatives to execute given the \ +requested action type and will facilitate components so that all the plugins can \ +receive all the information they need." +HOMEPAGE="https://invent.kde.org/frameworks/purpose" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/purpose-${portVersion}.tar.xz" +CHECKSUM_SHA256="55b02d49387b76f54e3bec48f82cd78f398b5403bc8d10d482bfff7e30a0028a" +SOURCE_DIR="purpose-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + purpose6$secondaryArchSuffix = $portVersion + lib:libKF6Purpose$secondaryArchSuffix = $libVersionCompat + lib:libKF6PurposeWidgets$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libKF6Bookmarks$secondaryArchSuffix + lib:libKF6CalendarEvents$secondaryArchSuffix + lib:libKF6Codecs$secondaryArchSuffix + lib:libKF6Completion$secondaryArchSuffix + lib:libKF6ConfigCore$secondaryArchSuffix + lib:libKF6ConfigWidgets$secondaryArchSuffix + lib:libKF6CoreAddons$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libKF6ItemViews$secondaryArchSuffix + lib:libKF6JobWidgets$secondaryArchSuffix + lib:libKF6KIOCore$secondaryArchSuffix + lib:libKirigami$secondaryArchSuffix + lib:libKF6Notifications$secondaryArchSuffix + lib:libKF6PrisonScanner$secondaryArchSuffix + lib:libKF6Service$secondaryArchSuffix + lib:libKF6Solid$secondaryArchSuffix + lib:libKF6WidgetsAddons$secondaryArchSuffix + lib:libKF6WindowSystem$secondaryArchSuffix + lib:libKF6XmlGui$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Qml$secondaryArchSuffix + " + +PROVIDES_devel=" + purpose6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6Purpose$secondaryArchSuffix = $libVersionCompat + devel:libKF6PurposeWidgets$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + purpose6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + devel:libKF6Bookmarks$secondaryArchSuffix == $portVersion + devel:libKF6CalendarEvents$secondaryArchSuffix == $portVersion + devel:libKF6Codecs$secondaryArchSuffix == $portVersion + devel:libKF6Completion$secondaryArchSuffix == $portVersion + devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion + devel:libKF6ConfigWidgets$secondaryArchSuffix == $portVersion + devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion + devel:libKF6I18n$secondaryArchSuffix == $portVersion + devel:libKF6ItemViews$secondaryArchSuffix == $portVersion + devel:libKF6JobWidgets$secondaryArchSuffix == $portVersion + devel:libKF6KIOCore$secondaryArchSuffix == $portVersion + devel:libKirigami$secondaryArchSuffix == $portVersion + devel:libKF6Notifications$secondaryArchSuffix == $portVersion + devel:libKF6PrisonScanner$secondaryArchSuffix == $portVersion + devel:libKF6Service$secondaryArchSuffix == $portVersion + devel:libKF6Solid$secondaryArchSuffix == $portVersion + devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion + devel:libKF6WindowSystem$secondaryArchSuffix == $portVersion + devel:libKF6XmlGui$secondaryArchSuffix == $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libQt6QuickControls2$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + " + +TEST_REQUIRES=" + qthaikuplugins + " + +BUILD() +{ + cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ + $cmakeDirArgs \ + -DBUILD_WITH_QT6=ON \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \ + -DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_TESTING=OFF + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLibs \ + libKF6Purpose \ + libKF6PurposeWidgets + + packageEntries devel \ + $developDir \ + $libDir/cmake +} + +TEST() +{ + # 0% tests passed, 2 tests failed out of 2 + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -Cbuild test +}