mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Add KF6 frameworks, kservice6 (#10499)
This commit is contained in:
100
kde-frameworks/kservice/kservice6-6.2.0.recipe
Normal file
100
kde-frameworks/kservice/kservice6-6.2.0.recipe
Normal file
@@ -0,0 +1,100 @@
|
||||
SUMMARY="Plugin framework for desktop services"
|
||||
DESCRIPTION="KService provides a plugin framework for handling desktop \
|
||||
services. Services can be applications or libraries. They can be bound to \
|
||||
MIME types or handled by application specific code."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/kservice"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kservice-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="0646c9219c0d7d9a2371b90dc427ebc86cf30adafcb22b458f130f011de28882"
|
||||
SOURCE_DIR="kservice-$portVersion"
|
||||
PATCHES="kservice-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
kservice6$secondaryArchSuffix = $portVersion
|
||||
cmd:kbuildsycoca6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6Service$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:update_mime_database$secondaryArchSuffix
|
||||
lib:libKF6ConfigCore$secondaryArchSuffix
|
||||
lib:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libKF6Crash$secondaryArchSuffix
|
||||
lib:libKF6DBusAddons$secondaryArchSuffix
|
||||
lib:libKF6I18n$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6DBus$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kservice6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6Service$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kservice6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6Crash$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6DBusAddons$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6I18n$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6DBus$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
devel:libQt6Xml$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:bison
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen >= 1.9
|
||||
cmd:flex
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python3
|
||||
cmd:update_mime_database$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6Service
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 0% tests passed, 6 tests failed out of 6 (1 crash)
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
make -C build test
|
||||
}
|
||||
25
kde-frameworks/kservice/patches/kservice-6.2.0.patchset
Normal file
25
kde-frameworks/kservice/patches/kservice-6.2.0.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From fac3d12fbb219570c6feb2497ad382e9aedd7934 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 7 Jan 2020 18:16:42 +1000
|
||||
Subject: Set path for sycoca databases
|
||||
|
||||
|
||||
diff --git a/src/sycoca/ksycoca.cpp b/src/sycoca/ksycoca.cpp
|
||||
index 981342e..5b72e29 100644
|
||||
--- a/src/sycoca/ksycoca.cpp
|
||||
+++ b/src/sycoca/ksycoca.cpp
|
||||
@@ -694,7 +694,11 @@ QString KSycoca::absoluteFilePath()
|
||||
suffix.replace(QLatin1Char(':'), QLatin1Char('_'));
|
||||
#endif
|
||||
const QString fileName = QLatin1String("ksycoca6") + suffix;
|
||||
+#ifdef Q_OS_HAIKU
|
||||
+ return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1String("/kdesycoca/") + fileName;
|
||||
+#else
|
||||
return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1Char('/') + fileName;
|
||||
+#endif
|
||||
} else {
|
||||
return QFile::decodeName(ksycoca_env);
|
||||
}
|
||||
--
|
||||
2.43.2
|
||||
|
||||
Reference in New Issue
Block a user