Kreversi: bump version

This commit is contained in:
Gerasim Troeglazov
2021-11-01 21:36:35 +10:00
parent 047eed752d
commit 5ab7438c89
2 changed files with 6 additions and 30 deletions

View File

@@ -4,13 +4,12 @@ If a player's piece is captured by an opposing player, that piece is turned over
the color of that player. A winner is declared when one player has more pieces of his own \
color on the board and there are no more possible moves."
HOMEPAGE="https://apps.kde.org/kreversi"
COPYRIGHT="2010-2020 KDE Organisation"
COPYRIGHT="2010-2021 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kreversi-$portVersion.tar.xz"
CHECKSUM_SHA256="9c6ab533fca996ef12b5c49578113daef5b416059a9ada238837f1c778e86afe"
CHECKSUM_SHA256="987b75131dc29e67ca2f6dbb469bb9d10b59ec084f0a426cb0b483762953e2a3"
SOURCE_DIR="kreversi-$portVersion"
PATCHES="kreversi-$portVersion.patchset"
ADDITIONAL_FILES="kreversi.rdef.in"
ARCHITECTURES="all !x86_gcc2"
@@ -61,7 +60,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= 5.77
extra_cmake_modules$secondaryArchSuffix >= 5.86
devel:libKF5Archive$secondaryArchSuffix
devel:libKF5Attica$secondaryArchSuffix
devel:libKF5Auth$secondaryArchSuffix
@@ -109,12 +108,13 @@ BUILD()
sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
# remove dbus service
sed -e '/KDBusService service;/d' -i main.cpp
sed -e '/KDBusService service;/d' -i src/main.cpp
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$appsDir \
-DCMAKE_INSTALL_DATADIR=$dataDir \
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \

View File

@@ -1,24 +0,0 @@
From d7d67452c96de77604f3306e93f94580ee65d1de Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 2 Jan 2021 14:48:05 +1000
Subject: Disable dbus
diff --git a/main.cpp b/main.cpp
index 02fe695..ca8ed97 100644
--- a/main.cpp
+++ b/main.cpp
@@ -72,8 +72,9 @@ int main(int argc, char **argv)
aboutData.setupCommandLine(&parser);
parser.process(application);
aboutData.processCommandLine(&parser);
-
+#ifndef __HAIKU__
KDBusService service;
+#endif
if (application.isSessionRestored()) {
kRestoreMainWindows<KReversiMainWindow>();
} else {
--
2.28.0