From ab724b48decd23740379eca5ee22722e1ca59311 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 14:28:44 +0200 Subject: [PATCH] Add KF6 frameworks, kcmutils6 (#10531) --- .../kcmutils/kcmutils6-6.2.0.recipe | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 kde-frameworks/kcmutils/kcmutils6-6.2.0.recipe diff --git a/kde-frameworks/kcmutils/kcmutils6-6.2.0.recipe b/kde-frameworks/kcmutils/kcmutils6-6.2.0.recipe new file mode 100644 index 000000000..a2ac2d30a --- /dev/null +++ b/kde-frameworks/kcmutils/kcmutils6-6.2.0.recipe @@ -0,0 +1,131 @@ +SUMMARY="Utilities for KDE System Settings modules" +DESCRIPTION="KCMUtils provides various classes to work with KCModules. \ +KCModules can be created with the KConfigWidgets framework." +HOMEPAGE="https://invent.kde.org/frameworks/kcmutils" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcmutils-${portVersion}.tar.xz" +CHECKSUM_SHA256="8cef140ca9eabf29e88a08489c799078e85247907fd6f74165aeafd4ed40c0bb" +SOURCE_DIR="kcmutils-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kcmutils6$secondaryArchSuffix = $portVersion + cmd:kcmshell6$secondaryArchSuffix = $portVersion + lib:libKF6KCMUtils$secondaryArchSuffix = $libVersionCompat + lib:libKF6KCMUtilsCore$secondaryArchSuffix = $libVersionCompat + lib:libKF6KCMUtilsQuick$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libKF6ColorScheme$secondaryArchSuffix + lib:libKF6ConfigCore$secondaryArchSuffix + lib:libKF6ConfigGui$secondaryArchSuffix + lib:libKF6ConfigWidgets$secondaryArchSuffix + lib:libKF6CoreAddons$secondaryArchSuffix + lib:libKF6GuiAddons$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libKF6ItemViews$secondaryArchSuffix + lib:libKF6WidgetsAddons$secondaryArchSuffix + lib:libKF6XmlGui$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6DBus$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Network$secondaryArchSuffix + lib:libQt6OpenGL$secondaryArchSuffix + lib:libQt6Qml$secondaryArchSuffix + lib:libQt6Quick$secondaryArchSuffix + lib:libQt6QuickWidgets$secondaryArchSuffix + lib:libQt6Widgets$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + kcmutils6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6KCMUtils$secondaryArchSuffix = $libVersionCompat + devel:libKF6KCMUtilsCore$secondaryArchSuffix = $libVersionCompat + devel:libKF6KCMUtilsQuick$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kcmutils6$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:libKF6ColorScheme$secondaryArchSuffix == $portVersion + devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion + devel:libKF6ConfigWidgets$secondaryArchSuffix == $portVersion + devel:libKF6Completion$secondaryArchSuffix == $portVersion + devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion + devel:libKF6GuiAddons$secondaryArchSuffix == $portVersion + devel:libKF6I18n$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:libQt6Core$secondaryArchSuffix + devel:libQt6Dbus$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:python3 + " + +TEST_REQUIRES=" + qthaikuplugins + lib:libKirigami$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON \ + -DBUILD_TESTING=OFF + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLibs \ + libKF6KCMUtils \ + libKF6KCMUtilsCore \ + libKF6KCMUtilsQuick + + packageEntries devel \ + $developDir \ + $dataDir/doc \ + $libDir/cmake +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + ctest --test-dir build --output-on-failure +}