From 708ec07db67461d1501941c32ab8fa500a14ec52 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 14:00:28 +0200 Subject: [PATCH] Add KF6 frameworks, frameworkintegration6 (#10529) --- .../frameworkintegration6-6.2.0.recipe | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 kde-frameworks/frameworkintegration/frameworkintegration6-6.2.0.recipe diff --git a/kde-frameworks/frameworkintegration/frameworkintegration6-6.2.0.recipe b/kde-frameworks/frameworkintegration/frameworkintegration6-6.2.0.recipe new file mode 100644 index 000000000..84e4862c7 --- /dev/null +++ b/kde-frameworks/frameworkintegration/frameworkintegration6-6.2.0.recipe @@ -0,0 +1,107 @@ +SUMMARY="Integration of Qt application with KDE workspaces" +DESCRIPTION="Framework Integration is a set of plugins responsible for better integration of Qt \ +applications when running on a KDE Plasma workspace. + +Applications do not need to link to this directly." +HOMEPAGE="https://invent.kde.org/frameworks/frameworkintegration" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/frameworkintegration-$portVersion.tar.xz" +CHECKSUM_SHA256="e41f64b178ad9dadcad51b145bd580868aba061fb80ff15614268d09ec4e0d7c" +SOURCE_DIR="frameworkintegration-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + frameworkintegration6$secondaryArchSuffix = $portVersion + lib:libKF6Style$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libKF6AuthCore$secondaryArchSuffix + lib:libKF6Codecs$secondaryArchSuffix + lib:libKF6ColorScheme$secondaryArchSuffix + lib:libKF6ConfigCore$secondaryArchSuffix + lib:libKF6ConfigWidgets$secondaryArchSuffix + lib:libKF6CoreAddons$secondaryArchSuffix + lib:libKF6IconThemes$secondaryArchSuffix + lib:libKF6WidgetsAddons$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Widgets$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + frameworkintegration6${secondaryArchSuffix}_devel = $portVersion + devel:libKF6Style$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + frameworkintegration6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + devel:libKF6AuthCore$secondaryArchSuffix == $portVersion + devel:libKF6Attica$secondaryArchSuffix == $portVersion + devel:libKF6Codecs$secondaryArchSuffix == $portVersion + devel:libKF6ColorScheme$secondaryArchSuffix == $portVersion + devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion + devel:libKF6ConfigWidgets$secondaryArchSuffix == $portVersion + devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion + devel:libKF6I18n$secondaryArchSuffix == $portVersion + devel:libKF6IconThemes$secondaryArchSuffix == $portVersion + devel:libKF6NewStuffCore$secondaryArchSuffix == $portVersion + devel:libKF6Notifications$secondaryArchSuffix == $portVersion + devel:libKF6Package$secondaryArchSuffix == $portVersion + devel:libKF6Service$secondaryArchSuffix == $portVersion + devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion + devel:libKF6XmlGui$secondaryArchSuffix == $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_TESTING=OFF + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libKF6Style + + packageEntries devel \ + $developDir \ + $libDir/cmake +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -C build test +}