app-editors/notepadqq: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 25 Feb 2019 23:56:04 +0000 (00:56 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 25 Feb 2019 23:56:25 +0000 (00:56 +0100)
Closes: https://bugs.gentoo.org/668392
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-editors/notepadqq/files/notepadqq-1.4.8-qt-5.11-QDateTime.patch [new file with mode: 0644]
app-editors/notepadqq/notepadqq-1.4.8.ebuild

diff --git a/app-editors/notepadqq/files/notepadqq-1.4.8-qt-5.11-QDateTime.patch b/app-editors/notepadqq/files/notepadqq-1.4.8-qt-5.11-QDateTime.patch
new file mode 100644 (file)
index 0000000..d0158c3
--- /dev/null
@@ -0,0 +1,25 @@
+From 8d5dc3dfb279f8420457fbc04a3ff6fb5f3f8a21 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Tue, 26 Feb 2019 00:47:26 +0100
+Subject: [PATCH] Fix build with Qt 5.11 (add missing QDateTime include)
+
+Downstream report: https://bugs.gentoo.org/668392
+---
+ src/ui/stats.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ui/stats.cpp b/src/ui/stats.cpp
+index 59837c9..e0f3cbd 100644
+--- a/src/ui/stats.cpp
++++ b/src/ui/stats.cpp
+@@ -3,6 +3,7 @@
+ #include <QNetworkAccessManager>
+ #include <QJsonDocument>
+ #include <QNetworkRequest>
++#include <QDateTime>
+ #include <QNetworkReply>
+ #include <QSysInfo>
+ #include <QTimer>
+-- 
+2.21.0
+
index a61d2f600136ef918960f888f0ea5957928efa62..810b3dd47740637002424ce480dff74fb7966b6b 100644 (file)
@@ -27,13 +27,12 @@ RDEPEND="
        dev-qt/qtwebkit:5
        dev-qt/qtwidgets:5
 "
-DEPEND="
-       ${RDEPEND}
+DEPEND="${RDEPEND}
        dev-qt/linguist-tools:5
        dev-qt/qtsvg:5
 "
 
-PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
+PATCHES=( "${FILESDIR}"/${P}-qt-5.11{,-QDateTime}.patch )
 
 src_prepare() {
        default