kreversi: initial add 17.08.1
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 14dad713bde33b66476e80dc8a13edd010925800 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Wed, 27 Sep 2017 20:39:15 +0200
|
||||
Subject: [PATCH] fix build with QT_NO_SESSIONMANAGER set
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
main.cpp | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/main.cpp b/main.cpp
|
||||
index 5cff693..f72afc9 100644
|
||||
--- a/main.cpp
|
||||
+++ b/main.cpp
|
||||
@@ -73,9 +73,12 @@ int main(int argc, char **argv)
|
||||
aboutData.processCommandLine(&parser);
|
||||
|
||||
KDBusService service;
|
||||
+#ifndef QT_NO_SESSIONMANAGER
|
||||
if (application.isSessionRestored()) {
|
||||
RESTORE(KReversiMainWindow)
|
||||
- } else {
|
||||
+ } else
|
||||
+#endif
|
||||
+ {
|
||||
KReversiMainWindow *mainWin = new KReversiMainWindow(0, parser.isSet(QStringLiteral("demo")));
|
||||
mainWin->show();
|
||||
}
|
||||
--
|
||||
2.9.5
|
||||
|
||||
35
recipes-kde/apps/kreversi/kreversi.bb
Normal file
35
recipes-kde/apps/kreversi/kreversi.bb
Normal file
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "KReversi is is a simple strategy game played against the computer"
|
||||
DESCRIPTION = "KReversi is is a simple one player strategy game played against the computer"
|
||||
LICENSE = "GPLv2 & GFDL-1.2"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://COPYING.DOC;md5=ad1419ecc56e060eccf8184a87c4285f \
|
||||
"
|
||||
|
||||
inherit kde-apps
|
||||
|
||||
DEPENDS += "\
|
||||
kconfig \
|
||||
kconfigwidgets \
|
||||
kcoreaddons \
|
||||
kcrash \
|
||||
kdbusaddons \
|
||||
kdeclarative \
|
||||
ki18n \
|
||||
kiconthemes \
|
||||
kio \
|
||||
kxmlgui \
|
||||
kwidgetsaddons \
|
||||
kdoctools \
|
||||
libkdegames \
|
||||
"
|
||||
|
||||
PV = "${KDE_APP_VERSION}"
|
||||
SRC_URI[md5sum] = "39a9b4b7fa2fb6569727cf81d7a443e2"
|
||||
SRC_URI[sha256sum] = "07a057806f9035bfc4f268bbca6b3a9646303eb6e6760e85a550cbaf618cc29f"
|
||||
SRC_URI+="file://0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch"
|
||||
|
||||
FILES_${PN} += " \
|
||||
${datadir}/k*5 \
|
||||
${datadir}/icons \
|
||||
"
|
||||
Reference in New Issue
Block a user