commit:     7b26a5c5481d595475afb5df897f9057e6df71dc
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 18 02:01:16 2018 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Aug 18 02:01:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b26a5c5

x11-misc/qterm: fix build with Qt 5.11

Closes: https://bugs.gentoo.org/663352
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 x11-misc/qterm/files/qterm-0.7.1-headers.patch | 40 ++++++++++++++++++++++++++
 x11-misc/qterm/qterm-0.7.1.ebuild              |  1 +
 2 files changed, 41 insertions(+)

diff --git a/x11-misc/qterm/files/qterm-0.7.1-headers.patch 
b/x11-misc/qterm/files/qterm-0.7.1-headers.patch
new file mode 100644
index 00000000000..c442c0ac8b3
--- /dev/null
+++ b/x11-misc/qterm/files/qterm-0.7.1-headers.patch
@@ -0,0 +1,40 @@
+--- a/src/keydialog.h
++++ b/src/keydialog.h
+@@ -10,6 +10,7 @@
+ #ifndef KEYDIALOG_H
+ #define KEYDIALOG_H
+ 
++#include <QButtonGroup>
+ #include "ui_keydialog.h"
+ namespace QTerm
+ {
+--- a/src/soundconf.h
++++ b/src/soundconf.h
+@@ -1,6 +1,7 @@
+ #ifndef SOUNDCONF_H
+ #define SOUNDCONF_H
+ 
++#include <QButtonGroup>
+ #include "ui_soundconf.h"
+ namespace QTerm
+ {
+--- a/src/shortcutsdialog.cpp
++++ b/src/shortcutsdialog.cpp
+@@ -3,6 +3,7 @@
+ #include <QKeyEvent>
+ #include <QMessageBox>
+ #include <QShortcut>
++#include <QAction>
+
+ namespace QTerm {
+
+--- a/src/shortcutsdialog.h
++++ b/src/shortcutsdialog.h
+@@ -3,6 +3,7 @@
+
+ #include "ui_shortcutsdialog.h"
+ class QShortcut;
++class QAction;
+
+ namespace QTerm{
+

diff --git a/x11-misc/qterm/qterm-0.7.1.ebuild 
b/x11-misc/qterm/qterm-0.7.1.ebuild
index 2273e5d3069..daf1248d0cb 100644
--- a/x11-misc/qterm/qterm-0.7.1.ebuild
+++ b/x11-misc/qterm/qterm-0.7.1.ebuild
@@ -30,6 +30,7 @@ DEPEND="${RDEPEND}
        dev-qt/qthelp:5
        x11-base/xorg-proto"
 
+PATCHES=( "${FILESDIR}"/${P}-headers.patch )
 DOCS=( README.rst RELEASE_NOTES TODO )
 
 src_prepare() {

Reply via email to