dev-games/tiled: fix build with Qt 5.11
authorMichael Palimaka <kensington@gentoo.org>
Thu, 11 Oct 2018 11:57:37 +0000 (22:57 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 11 Oct 2018 11:58:12 +0000 (22:58 +1100)
Closes: https://bugs.gentoo.org/667000
Signed-off-by: Michael Palimaka <kensington@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

dev-games/tiled/files/tiled-1.2.0-qt-5.11.patch [new file with mode: 0644]
dev-games/tiled/tiled-1.2.0.ebuild

diff --git a/dev-games/tiled/files/tiled-1.2.0-qt-5.11.patch b/dev-games/tiled/files/tiled-1.2.0-qt-5.11.patch
new file mode 100644 (file)
index 0000000..43b3c64
--- /dev/null
@@ -0,0 +1,26 @@
+Bug: https://bugs.gentoo.org/667000
+
+From 1f039bc40c730cdd93df8213795bbb0fcb634dfe Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Thu, 11 Oct 2018 22:51:03 +1100
+Subject: [PATCH] Add missing include.
+
+---
+ src/tiled/newsfeed.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tiled/newsfeed.cpp b/src/tiled/newsfeed.cpp
+index ddf988c3..2e2e12b9 100644
+--- a/src/tiled/newsfeed.cpp
++++ b/src/tiled/newsfeed.cpp
+@@ -22,6 +22,7 @@
+ #include "preferences.h"
++#include <QDebug>
+ #include <QNetworkAccessManager>
+ #include <QNetworkReply>
+ #include <QSettings>
+-- 
+2.18.1
+
index fb9cfdad6b97d2bb1c6e1a6c4980333b08d6b512..75a12ed885f7037e18b5558584b0693343e9e71c 100644 (file)
@@ -30,6 +30,7 @@ DEPEND="${RDEPEND}
 "
 
 DOCS=( AUTHORS COPYING NEWS.md README.md )
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
 
 pkg_setup() {
        use python && python-single-r1_pkg_setup