Files
haikuports/kde-frameworks/frameworkintegration/frameworkintegration6-6.19.0.recipe
2025-10-29 07:55:52 +00:00

120 lines
3.4 KiB
Bash

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-2025 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/frameworkintegration-$portVersion.tar.xz"
CHECKSUM_SHA256="fb6bc12b342b66811bd52812448d8a67e1fe6e0d37f1c66c54168852147e59a4"
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:libKF6ColorScheme$secondaryArchSuffix
lib:libKF6ConfigCore$secondaryArchSuffix
lib:libKF6IconThemes$secondaryArchSuffix
lib:libKF6WidgetsAddons$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Widgets$secondaryArchSuffix
"
PROVIDES_devel="
frameworkintegration6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6Style$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
frameworkintegration6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
frameworkintegration6_doc = $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
# appstream_qt6$secondaryArchSuffix
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libKF6Attica$secondaryArchSuffix >= $libVersion
devel:libKF6ColorScheme$secondaryArchSuffix >= $libVersion
devel:libKF6ConfigCore$secondaryArchSuffix >= $libVersion
devel:libKF6CoreAddons$secondaryArchSuffix >= $libVersion
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
devel:libKF6IconThemes$secondaryArchSuffix >= $libVersion
devel:libKF6NewStuffCore$secondaryArchSuffix >= $libVersion
devel:libKF6Notifications$secondaryArchSuffix >= $libVersion
devel:libKF6Package$secondaryArchSuffix >= $libVersion
devel:libKF6WidgetsAddons$secondaryArchSuffix >= $libVersion
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
kde_qdoc_common
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
TEST_REQUIRES="
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_SKIP_RPATH=YES \
-DBUILD_TESTING=OFF \
-Wno-dev
make -C build $jobArgs
cmake --build build --target prepare_docs
cmake --build build --target generate_docs
cmake --build build --target generate_qch
}
INSTALL()
{
make -C build install
# cmake --build build --target install_html_docs
cmake --build build --target install_qch_docs
prepareInstalledDevelLib \
libKF6Style
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}