net-p2p/ktorrent: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 18 Mar 2018 18:32:24 +0000 (19:32 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 18 Mar 2018 18:36:22 +0000 (19:36 +0100)
Bug: https://bugs.gentoo.org/650808
Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch [new file with mode: 0644]
net-p2p/ktorrent/ktorrent-5.1.0.ebuild

diff --git a/net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch b/net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch
new file mode 100644 (file)
index 0000000..f59e074
--- /dev/null
@@ -0,0 +1,53 @@
+From 4befccc3d0ebbd9235e6f10d411f139802e3871a Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 18 Mar 2018 19:13:26 +0100
+Subject: [PATCH] Fix build with Qt 5.11 (missing headers)
+
+Reviewers: stikonas
+
+Differential Revision: https://phabricator.kde.org/D11456
+---
+ ktorrent/dialogs/fileselectdlg.cpp | 1 +
+ ktorrent/groups/groupview.cpp      | 1 +
+ plugins/search/searchprefpage.cpp  | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/ktorrent/dialogs/fileselectdlg.cpp b/ktorrent/dialogs/fileselectdlg.cpp
+index 139b4752..ec7d8ede 100644
+--- a/ktorrent/dialogs/fileselectdlg.cpp
++++ b/ktorrent/dialogs/fileselectdlg.cpp
+@@ -20,6 +20,7 @@
+ #include "fileselectdlg.h"
++#include <QButtonGroup>
+ #include <QMenu>
+ #include <QPushButton>
+ #include <QTextCodec>
+diff --git a/ktorrent/groups/groupview.cpp b/ktorrent/groups/groupview.cpp
+index 990ed0d3..76208144 100644
+--- a/ktorrent/groups/groupview.cpp
++++ b/ktorrent/groups/groupview.cpp
+@@ -23,6 +23,7 @@
+ #include <QAction>
+ #include <QDragEnterEvent>
+ #include <QDropEvent>
++#include <QHeaderView>
+ #include <QInputDialog>
+ #include <QMenu>
+ #include <QTreeWidgetItemIterator>
+diff --git a/plugins/search/searchprefpage.cpp b/plugins/search/searchprefpage.cpp
+index 667e7a82..4be6cd5c 100644
+--- a/plugins/search/searchprefpage.cpp
++++ b/plugins/search/searchprefpage.cpp
+@@ -21,6 +21,7 @@
+ #include "searchprefpage.h"
++#include <QButtonGroup>
+ #include <QCheckBox>
+ #include <QFile>
+ #include <QInputDialog>
+-- 
+2.16.2
+
index ee8be9828980e6a1a624ebd2fcf72c70fd4fa1e1..ef67d30802dc902907d752058907be217cb1cd40 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -78,6 +78,8 @@ RDEPEND="${COMMON_DEPEND}
        !net-p2p/ktorrent:4
 "
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
+
 src_configure() {
        local mycmakeargs=(
                -DENABLE_BWSCHEDULER_PLUGIN=$(usex bwscheduler)