summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-03-19 02:34:04 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-03-19 02:34:50 +0100
commit69bda468b16a78ac6fcd84b1c08671bc6ea74726 (patch)
treeffa226d7d06da09349b8cb8129a85a23ce627174 /kde-apps/katomic
parentecm.eclass: Drop KDE Applications 19.08.3 support (diff)
downloadgentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.tar.gz
gentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.tar.bz2
gentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.zip
kde-apps: Re-add KDE Applications 19.08.3 for arm64 only
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/katomic')
-rw-r--r--kde-apps/katomic/Manifest1
-rw-r--r--kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch55
-rw-r--r--kde-apps/katomic/files/katomic-19.08.3-qt-5.14-2.patch24
-rw-r--r--kde-apps/katomic/katomic-19.08.3.ebuild38
4 files changed, 118 insertions, 0 deletions
diff --git a/kde-apps/katomic/Manifest b/kde-apps/katomic/Manifest
index 12c5eba7b686..2deeb579bcb4 100644
--- a/kde-apps/katomic/Manifest
+++ b/kde-apps/katomic/Manifest
@@ -1 +1,2 @@
+DIST katomic-19.08.3.tar.xz 1423744 BLAKE2B 89c4a6c7a53a086d9da899d65ee552a12c86c663261f27239fe8efe64117342bc5667db6564a573954d86c26b7c6106c6a8b426083d6fcc74250d9fa63eda6dc SHA512 cbf777134dd7e6a8fe1684643943ac665c5a87e2e57d6633e61e6fee0528da2eb9b874506e6b4d8f4d83024f0d62c187296bae9a496f4f9bc3b1ad293baf8671
DIST katomic-19.12.3.tar.xz 1423176 BLAKE2B a561565d20e89333d77cee1eda74f615c3a66a2cc2dc170fa3cd64015fddd825ac3d930ce2aa890079a3d4fe4c00fb83f822d58c057fc70ff8a61fdb61cef16f SHA512 32f90755f0e85996a6949a306c8d20e610c049f18c916240750a70006d2f625dcee41b915a93e9bf2ae3ff128df1066124a8a899e980fcf834995c558e3f6411
diff --git a/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch
new file mode 100644
index 000000000000..6dc49d2e100b
--- /dev/null
+++ b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch
@@ -0,0 +1,55 @@
+From 8e1a20b26d60976afdc068f7203cf35147b94a85 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Thu, 19 Sep 2019 07:16:58 +0200
+Subject: Make it compile without deprecated method
+
+---
+ levelset.cpp | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+diff --git a/levelset.cpp b/levelset.cpp
+index 5e001c1..98e4b6d 100644
+--- a/levelset.cpp
++++ b/levelset.cpp
+@@ -176,13 +176,12 @@ const LevelData* LevelSet::levelData(int levelNum) const
+ const LevelData* LevelSet::readLevel(int levelNum) const
+ {
+ KConfigGroup config = m_levelsFile->group(QStringLiteral("Level")+QString::number(levelNum));
+- QString key;
+
+ QList<LevelData::Element> elements;
+
+ for (int j = 0; j < FIELD_SIZE; j++)
+ {
+- key.sprintf("feld_%02d", j);
++ const QString key = QString::asprintf("feld_%02d", j);
+ QString line = config.readEntry(key,QString());
+
+ for (int i = 0; i < FIELD_SIZE; i++)
+@@ -227,14 +226,13 @@ const Molecule* LevelSet::readLevelMolecule(int levelNum) const
+ Molecule* mol = new Molecule();
+ KConfigGroup config = m_levelsFile->group(QStringLiteral("Level")+QString::number(levelNum));
+
+- QString key;
+
+ atom current;
+
+ int atom_index = 1;
+ QString value;
+ while (true) {
+- key.sprintf("atom_%c", int2atom(atom_index));
++ const QString key = QString::asprintf("atom_%c", int2atom(atom_index));
+ value = config.readEntry(key,QString());
+ if (value.isEmpty())
+ break;
+@@ -259,7 +257,7 @@ const Molecule* LevelSet::readLevelMolecule(int levelNum) const
+ int max_i = -1;
+ for (int j = 0; j < MOLECULE_SIZE; j++) {
+
+- key.sprintf("mole_%d", j);
++ const QString key = QString::asprintf("mole_%d", j);
+ line = config.readEntry(key,QString());
+
+ int max_non_null_i = -1;
+--
+cgit v1.1
diff --git a/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-2.patch b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-2.patch
new file mode 100644
index 000000000000..42bc21731226
--- /dev/null
+++ b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-2.patch
@@ -0,0 +1,24 @@
+From d8cf83cf8554914ea357920473ff4c722cf794bf Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Thu, 31 Oct 2019 13:30:42 +0100
+Subject: Make it compile against 5.15. This enum was unused
+
+---
+ gamewidget.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gamewidget.cpp b/gamewidget.cpp
+index d70213b..3639847 100644
+--- a/gamewidget.cpp
++++ b/gamewidget.cpp
+@@ -58,7 +58,7 @@ GameWidget::GameWidget ( const QString& levelSet, QWidget *parent )
+ // TODO uncomment DontSavePainterState optimization back after this bug in Qt 4.6 preview will be
+ // fixed (darktears promised it will get fixed in 4.6.0 release). Bug is about wrong coordinates
+ // for QPainter passed to QGS::drawForeground() function
+- m_view->setOptimizationFlags( QGraphicsView::DontClipPainter |
++ m_view->setOptimizationFlags(
+ //QGraphicsView::DontSavePainterState |
+ QGraphicsView::DontAdjustForAntialiasing );
+
+--
+cgit v1.1
diff --git a/kde-apps/katomic/katomic-19.08.3.ebuild b/kde-apps/katomic/katomic-19.08.3.ebuild
new file mode 100644
index 000000000000..7feceeb8850a
--- /dev/null
+++ b/kde-apps/katomic/katomic-19.08.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+KDE_SELINUX_MODULE="games"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.60.0
+QTMIN=5.12.3
+inherit ecm kde.org
+
+DESCRIPTION="KDE Atomic Entertainment Game"
+HOMEPAGE="
+ https://kde.org/applications/games/katomic/
+ https://games.kde.org/game.php?game=katomic
+"
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="arm64"
+IUSE=""
+
+DEPEND="
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kcrash-${KFMIN}:5
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/knewstuff-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ >=kde-apps/libkdegames-${PVCUT}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-qt-5.14-{1,2}.patch )