app-emulation/punes: Fix compilation with Qt 5.11
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>
Tue, 21 Aug 2018 20:20:57 +0000 (23:20 +0300)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Aug 2018 21:23:04 +0000 (23:23 +0200)
Thanks-to: Fabio Cavallo <fhorse@libero.it>
Closes: https://bugs.gentoo.org/661524
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/9656

app-emulation/punes/files/punes-0.102-qt-5.11-fix.patch [new file with mode: 0644]
app-emulation/punes/punes-0.102.ebuild

diff --git a/app-emulation/punes/files/punes-0.102-qt-5.11-fix.patch b/app-emulation/punes/files/punes-0.102-qt-5.11-fix.patch
new file mode 100644 (file)
index 0000000..1ac5cca
--- /dev/null
@@ -0,0 +1,21 @@
+From 46620c32ff37a7968c977e4b3cde8d601807702c Mon Sep 17 00:00:00 2001
+From: fhorse <punes.development@gmail.com>
+Date: Sun, 15 Jul 2018 13:30:15 +0200
+Subject: [PATCH] Corretto errore di compilazione con le Qt5.
+
+---
+ src/gui/dlgCheats.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/gui/dlgCheats.cpp b/src/gui/dlgCheats.cpp
+index 9ff904d2..b7c6c52a 100644
+--- a/src/gui/dlgCheats.cpp
++++ b/src/gui/dlgCheats.cpp
+@@ -25,6 +25,7 @@
+ #include <QtWidgets/QMessageBox>
+ #include <QtWidgets/QCheckBox>
+ #include <QtWidgets/QFileDialog>
++#include <QtWidgets/QButtonGroup>
+ #endif
+ #include "dlgCheats.moc"
+ #include "mainWindow.hpp"
index cb13a8549234d65021f4a2c8b0bf604265f7c1c6..92b1d19b10d14be672ebb48e49f7b649966c704b 100644 (file)
@@ -28,6 +28,8 @@ DEPEND="
 
 S="${WORKDIR}/puNES-${PV}"
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.11-fix.patch" )
+
 src_prepare() {
        default