mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
132 lines
3.9 KiB
Bash
132 lines
3.9 KiB
Bash
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="76990eab816c45f116c8231db33f16af955ecc733c4eb7c89fe83977f3293da0"
|
|
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="
|
|
haikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e 's|6.8.0|6.7.2|' -i CMakeLists.txt
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$preferencesDir \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-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
|
|
}
|