commit:     eee92fc66783faa17112955812d026d205310001
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 11 13:00:34 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Oct 11 13:00:49 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eee92fc6

media-gfx/engauge: fix build with Qt 5.11

Closes: https://bugs.gentoo.org/662476
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 media-gfx/engauge/engauge-10.6.ebuild              |  4 +++-
 media-gfx/engauge/files/engauge-10.6-qt-5.11.patch | 26 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/media-gfx/engauge/engauge-10.6.ebuild 
b/media-gfx/engauge/engauge-10.6.ebuild
index ea7530fd0b5..7d8aba7d2cc 100644
--- a/media-gfx/engauge/engauge-10.6.ebuild
+++ b/media-gfx/engauge/engauge-10.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -32,6 +32,8 @@ S=$WORKDIR/engauge-digitizer-$PV
 src_prepare() {
        eapply_user
 
+       eapply "${FILESDIR}/${P}-qt-5.11.patch"
+
        # Make sure the documentation is looked for in the proper directory
        sed -e "s:engauge-digitizer/engauge.qhc:${PF}/engauge.qhc:" \
                -i src/Help/HelpWindow.cpp || die

diff --git a/media-gfx/engauge/files/engauge-10.6-qt-5.11.patch 
b/media-gfx/engauge/files/engauge-10.6-qt-5.11.patch
new file mode 100644
index 00000000000..9070f522393
--- /dev/null
+++ b/media-gfx/engauge/files/engauge-10.6-qt-5.11.patch
@@ -0,0 +1,26 @@
+Bug: https://bugs.gentoo.org/662476
+
+From 5eab86bf84dd1e52fc52b427a8f3508780811976 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <[email protected]>
+Date: Thu, 11 Oct 2018 23:51:15 +1100
+Subject: [PATCH] Add missing include.
+
+---
+ src/Load/LoadImageFromUrl.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Load/LoadImageFromUrl.cpp b/src/Load/LoadImageFromUrl.cpp
+index 684629bd..1150dad0 100644
+--- a/src/Load/LoadImageFromUrl.cpp
++++ b/src/Load/LoadImageFromUrl.cpp
+@@ -10,6 +10,7 @@
+ #include <QFileInfo>
+ #include <QMessageBox>
+ #include <QtNetwork/QNetworkReply>
++#include <QTextStream>
+ #include <QUrl>
+ #include "Version.h"
+ 
+-- 
+2.18.1
+

Reply via email to