sci-geosciences/qmapshack: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 15 Sep 2018 13:27:13 +0000 (15:27 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 15 Sep 2018 13:42:45 +0000 (15:42 +0200)
Doing it myself then.

Closes: https://bugs.gentoo.org/665342
Package-Manager: Portage-2.3.49, Repoman-2.3.10

sci-geosciences/qmapshack/files/qmapshack-1.11.1-qt-5.11.patch [new file with mode: 0644]
sci-geosciences/qmapshack/qmapshack-1.11.1-r1.ebuild

diff --git a/sci-geosciences/qmapshack/files/qmapshack-1.11.1-qt-5.11.patch b/sci-geosciences/qmapshack/files/qmapshack-1.11.1-qt-5.11.patch
new file mode 100644 (file)
index 0000000..404f034
--- /dev/null
@@ -0,0 +1,19 @@
+# HG changeset patch
+# User kiozen
+# Date 1528899896 -7200
+# Node ID e9b47af61b0945acb74649bab30dec23ac42f375
+# Parent  f52eedfb8f94ea218eb1c55bb8f2fa0c0503238f
+[Issue #344 ] Building latest version of QMapShack fails after updating QT from 5.10.1 to 5.11.0
+
+diff --git a/src/qmapshack/helpers/CToolBarSetupDialog.cpp b/src/qmapshack/helpers/CToolBarSetupDialog.cpp
+--- a/src/qmapshack/helpers/CToolBarSetupDialog.cpp
++++ b/src/qmapshack/helpers/CToolBarSetupDialog.cpp
+@@ -20,6 +20,8 @@
+ #include "helpers/CToolBarConfig.h"
+ #include "helpers/CToolBarSetupDialog.h"
++#include <QAction>
++
+ bool CToolBarSetupDialog::CItemFilter::shouldBeMoved(QListWidgetItem *item)
+ {
+     CDialogItem * dialogItem = dynamic_cast<CDialogItem *>(item);
index e49afba1831d00b777fe7d9e1196fa1cede1c9f3..a8ed47130b9a06dd937c782cbdaf6fab10998953 100644 (file)
@@ -28,6 +28,8 @@ RDEPEND="dev-qt/qtwebkit:5
 DEPEND="${RDEPEND}
        dev-qt/linguist-tools:5"
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
+
 pkg_postinst() {
        xdg_desktop_database_update
        xdg_mimeinfo_database_update