SUMMARY="Application to enable/disable qCDebug" DESCRIPTION="KDebugSettings edits which QLoggingCategory are displayed. QLoggingCategory prints \ messages on the console for applications and you can define which applications display messages \ for information, warning or critical errors to help debugging Qt applications." HOMEPAGE="https://apps.kde.org/nl/kdebugsettings/" COPYRIGHT="2010-2025 KDE Organisation" LICENSE="GNU LGPL v2.1" REVISION="1" SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kdebugsettings-$portVersion.tar.xz" CHECKSUM_SHA256="bedd634252ff85621c2246b26d61ab1a05ed9ab18bebbf8d658f4638af5f695e" PATCHES="kdebugsettings-$portVersion.patchset" ADDITIONAL_FILES="kdebugsettings.rdef.in" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" kdebugsettings$secondaryArchSuffix = $portVersion cmd:kdebugsettings = $portVersion lib:libkdebugsettings$secondaryArchSuffix = $libVersionCompat lib:libkdebugsettingscore$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libkdsingleapplication_qt6$secondaryArchSuffix # KF6 lib:libKF6ColorScheme$secondaryArchSuffix lib:libKF6Completion$secondaryArchSuffix lib:libKF6ConfigCore$secondaryArchSuffix lib:libKF6ConfigWidgets$secondaryArchSuffix lib:libKF6CoreAddons$secondaryArchSuffix lib:libKF6Crash$secondaryArchSuffix lib:libKF6GuiAddons$secondaryArchSuffix lib:libKF6I18n$secondaryArchSuffix lib:libKF6IconThemes$secondaryArchSuffix lib:libKF6WidgetsAddons$secondaryArchSuffix lib:libKF6XmlGui$secondaryArchSuffix # Qt6 lib:libQt6Core$secondaryArchSuffix lib:libQt6Gui$secondaryArchSuffix lib:libQt6Widgets$secondaryArchSuffix lib:libQt6Xml$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libkdsingleapplication_qt6$secondaryArchSuffix # KF6 extra_cmake_modules$secondaryArchSuffix devel:libKF6Completion$secondaryArchSuffix devel:libKF6ConfigCore$secondaryArchSuffix devel:libKF6CoreAddons$secondaryArchSuffix devel:libKF6Crash$secondaryArchSuffix devel:libKF6I18n$secondaryArchSuffix devel:libKF6IconThemes$secondaryArchSuffix devel:libKF6WidgetsAddons$secondaryArchSuffix devel:libKF6XmlGui$secondaryArchSuffix # Qt6 qt6_tools${secondaryArchSuffix}_devel devel:libQt6Core$secondaryArchSuffix devel:libQt6DBus$secondaryArchSuffix devel:libQt6Gui$secondaryArchSuffix devel:libQt6Qml$secondaryArchSuffix devel:libQt6Xml$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:g++$secondaryArchSuffix cmd:make cmd:msgfmt$secondaryArchSuffix cmd:msgmerge$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix " TEST_REQUIRES=" qt6_haikuplugins$secondaryArchSuffix " BUILD() { cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \ $cmakeDirArgs \ -DCMAKE_INSTALL_BINDIR=$preferencesDir \ -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ -DBUILD_TESTING=ON \ -Wno-dev make -C build $jobArgs } INSTALL() { make -C build install # cleanup rm -rf $dataDir/{applications,metainfo} mv $preferencesDir/kdebugsettings $preferencesDir/KDebugSettings local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`" local MINOR="`echo "$portVersion" | cut -d. -f3`" local APP_NAME="KDebugSettings" local LONG_INFO="$SUMMARY" local APP_SIGNATURE="application/x-vnd.kde-kdebugsettings" sed \ -e "s|@MAJOR@|$MAJOR|" \ -e "s|@MIDDLE@|$MIDDLE|" \ -e "s|@MINOR@|$MINOR|" \ -e "s|@LONG_INFO@|$LONG_INFO|" \ -e "s|@APP_NAME@|$APP_NAME|" \ -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ $portDir/additional-files/kdebugsettings.rdef.in > kdebugsettings.rdef addResourcesToBinaries kdebugsettings.rdef $preferencesDir/KDebugSettings addPreferencesDeskbarSymlink $preferencesDir/KDebugSettings } TEST() { # 95% tests passed, 1 tests failed out of 22 ctest --test-dir build --output-on-failure }