SUMMARY="Qt addon library with a collection of non-GUI utilities" DESCRIPTION="KCoreAddons provides classes built on top of QtCore to perform \ various tasks such as manipulating mime types, autosaving files, creating \ backup files, generating random sequences, performing text manipulations such \ as macro replacement, accessing user information and many more." HOMEPAGE="https://invent.kde.org/frameworks/kcoreaddons" COPYRIGHT="2010-2026 KDE Organisation" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcoreaddons-${portVersion}.tar.xz" CHECKSUM_SHA256="e7f0825576dc44af0c7194538e48114aa240f8fd3402f27047771f009e161a7e" SOURCE_DIR="kcoreaddons-$portVersion" PATCHES="kcoreaddons6-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" pythonVersion="3.10" pythonPackage=python${pythonVersion//.} PROVIDES=" kcoreaddons6$secondaryArchSuffix = $portVersion lib:libKF6coreaddons$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libQt6Core$secondaryArchSuffix lib:libQt6Gui$secondaryArchSuffix lib:libQt6Xml$secondaryArchSuffix " PROVIDES_devel=" kcoreaddons6${secondaryArchSuffix}_devel = $portVersion devel:libKF6coreaddons$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" kcoreaddons6$secondaryArchSuffix == $portVersion base " ARCHITECTURES_doc="any" PROVIDES_doc=" kcoreaddons6_doc = $portVersion " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel extra_cmake_modules$secondaryArchSuffix >= $portVersion gcc${secondaryArchSuffix}_syslibs_devel qt6_tools${secondaryArchSuffix}_devel shared_mime_info$secondaryArchSuffix # devel:libpyside6.abi3$secondaryArchSuffix devel:libQt6Core$secondaryArchSuffix devel:libQt6Qml$secondaryArchSuffix # devel:libshiboken6.abi3$secondaryArchSuffix " BUILD_PREREQUIRES=" kde_qdoc_common cmd:cmake cmd:g++$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix # cmd:python$pythonVersion # build_$pythonPackage # setuptools_$pythonPackage # wheel_$pythonPackage " 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 # don't mess with shared_mime_info files rm -rf $dataDir/mime/{aliases,generic-icons,globs,globs2,icons,magic} rm -rf $dataDir/mime/{mime.cache,subclasses,treemagic,types,version,XMLnamespaces} prepareInstalledDevelLib \ libKF6CoreAddons fixPkgconfig packageEntries devel \ $developDir \ $libDir/cmake packageEntries doc \ $documentationDir } TEST() { # 77% tests passed, 7 tests failed out of 31 export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" ctest --test-dir build --output-on-failure }