Files
haikuports/kde-frameworks/kdeclarative/kdeclarative6-6.25.0.recipe
2026-04-14 12:13:54 +00:00

118 lines
3.3 KiB
Bash

SUMMARY="Integration of QML and KDE work spaces"
DESCRIPTION="KDeclarative provides integration of QML and KDE work spaces. \
It's comprises two parts: a library used by the C++ part of your application \
to intergrate QML with KDE Frameworks specific features, and a series of QML \
imports that offer bindings to some of the Frameworks."
HOMEPAGE="https://invent.kde.org/frameworks/kdeclarative"
COPYRIGHT="2010-2026 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kdeclarative-${portVersion}.tar.xz"
CHECKSUM_SHA256="7692ccdffd55826976e916927b59aeb2d24a77b16af967fb265e9fe0cde387fa"
SOURCE_DIR="kdeclarative-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kdeclarative6$secondaryArchSuffix = $portVersion
lib:libKF6CalendarEvents$secondaryArchSuffix = $libVersionCompat
lib:libkquickcontrolsprivate$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libKF6ConfigCore$secondaryArchSuffix
lib:libKF6GuiAddons$secondaryArchSuffix
lib:libKF6I18n$secondaryArchSuffix
lib:libKF6WidgetsAddons$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
"
PROVIDES_devel="
kdeclarative6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6CalendarEvents$secondaryArchSuffix = $libVersionCompat
devel:libkquickcontrolsprivate$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kdeclarative6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
kdeclarative6_doc = $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libKF6ConfigCore$secondaryArchSuffix >= $libVersion
devel:libKF6GuiAddons$secondaryArchSuffix >= $libVersion
devel:libKF6I18n$secondaryArchSuffix >= $libVersion
devel:libKF6WidgetsAddons$secondaryArchSuffix >= $libVersion
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
devel:libQt6ShaderTools$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
prepareInstalledDevelLibs \
libKF6CalendarEvents \
libkquickcontrolsprivate
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
ctest --test-dir build --output-on-failure
# manual test, opens window for checking an image
# build/bin/qimageitemtest
}