app-office/lyx: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 30 Mar 2018 18:03:13 +0000 (20:03 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 30 Mar 2018 18:09:30 +0000 (20:09 +0200)
Bug: https://bugs.gentoo.org/631798
Package-Manager: Portage-2.3.27, Repoman-2.3.9

app-office/lyx/files/lyx-2.3.0-qt-5.11.patch [new file with mode: 0644]
app-office/lyx/lyx-2.3.0.ebuild

diff --git a/app-office/lyx/files/lyx-2.3.0-qt-5.11.patch b/app-office/lyx/files/lyx-2.3.0-qt-5.11.patch
new file mode 100644 (file)
index 0000000..6f18481
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/src/frontends/qt4/GuiDocument.cpp        2018-02-25 01:11:18.000000000 +0100
++++ b/src/frontends/qt4/GuiDocument.cpp        2018-03-30 19:45:47.283928297 +0200
+@@ -68,11 +68,12 @@
+ #include "frontends/alert.h"
+ #include <QAbstractItemModel>
+-#include <QHeaderView>
++#include <QButtonGroup>
+ #include <QColor>
+ #include <QColorDialog>
+ #include <QCloseEvent>
+ #include <QFontDatabase>
++#include <QHeaderView>
+ #include <QScrollBar>
+ #include <QTextBoundaryFinder>
+ #include <QTextCursor>
index a492d69d8b5227f028a81500c23441924d2d9244..ad0929130f0c11def2efc55d70fcaf07409f8a5c 100644 (file)
@@ -76,7 +76,10 @@ DEPEND="${RDEPEND}
 
 DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
 
-PATCHES=( "${FILESDIR}"/${P}-python.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-python.patch
+       "${FILESDIR}"/${P}-qt-5.11.patch
+)
 
 S="${WORKDIR}/${MY_P}"