add khelpcenter

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2015-02-04 14:03:37 +01:00
parent d18d0213aa
commit 5c12ca52b6
3 changed files with 81 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ RDEPENDS_${PN} = " \
kde-gtk-config \
kdeplasma-addons \
khtml \
khelpcenter \
\
kwayland \
${@bb.utils.contains("DISTRO_FEATURES", "x11", "kwin", "",d)} \

View File

@@ -0,0 +1,46 @@
From bf1ddc0831cf20839a4738b6b534e4e50691fd60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Wed, 4 Feb 2015 13:54:14 +0100
Subject: [PATCH] fix build for qtbase without session management
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
application.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/application.cpp b/application.cpp
index d29234d..5570879 100644
--- a/application.cpp
+++ b/application.cpp
@@ -54,10 +54,12 @@ void Application::activate(const QStringList& args, const QString &workingDirect
if( !mMainWindow )
{
+#ifndef QT_NO_SESSIONMANAGER
if (qApp->isSessionRestored()) {
// The kRestoreMainWindows call will do the rest.
return;
}
+#endif
mMainWindow = new MainWindow;
}
@@ -92,10 +94,12 @@ extern "C" int Q_DECL_EXPORT kdemain( int argc, char **argv )
app.activate(app.arguments(), QDir::currentPath());
+#ifndef QT_NO_SESSIONMANAGER
if ( app.isSessionRestored() )
{
kRestoreMainWindows<MainWindow>();
}
+#endif
return app.exec();
}
--
1.8.3.1

View File

@@ -0,0 +1,34 @@
SUMMARY = "Application to show KDE Applications' documentation"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=7108e5acd7ce861dee282297d7c2f38c \
"
inherit kde-plasma
DEPENDS += " \
kconfig \
kinit \
kcmutils \
khtml \
kdelibs4support \
\
${@bb.utils.contains("DISTRO_FEATURES", "x11", "virtual/xserver qtx11extras", "", d)} \
"
PV = "${PLASMA_VERSION}"
SRC_URI[md5sum] = "f575d603c62a001c551a213398c46268"
SRC_URI[sha256sum] = "3a0396118077af3b1e3df4654540a1d8cc900a3eae656f65409737d9f712bfa8"
SRC_URI += "file://0001-fix-build-for-qtbase-without-session-management.patch"
# do not move so-libs to -dev package
FILES_SOLIBSDEV = ""
FILES_${PN} += " \
${datadir}/config.kcfg \
${datadir}/k*5 \
${datadir}/dbus-1 \
${datadir}/kde4 \
${libdir}/libkdeinit5_khelpcenter.so \
"