summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-editors/notepadqq/files/notepadqq-1.4.8-qt-5.11-QDateTime.patch25
-rw-r--r--app-editors/notepadqq/notepadqq-1.4.8.ebuild5
2 files changed, 27 insertions, 3 deletions
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
index 000000000000..d0158c33527c
--- /dev/null
+++ b/app-editors/notepadqq/files/notepadqq-1.4.8-qt-5.11-QDateTime.patch
@@ -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
+
diff --git a/app-editors/notepadqq/notepadqq-1.4.8.ebuild b/app-editors/notepadqq/notepadqq-1.4.8.ebuild
index a61d2f600136..810b3dd47740 100644
--- a/app-editors/notepadqq/notepadqq-1.4.8.ebuild
+++ b/app-editors/notepadqq/notepadqq-1.4.8.ebuild
@@ -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