1 |
commit: cb0b10d7fea3b70322551676b92e42fa0b2692b5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 17 13:04:15 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 17 13:04:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0b10d7 |
7 |
|
8 |
dev-libs/grantlee: Fix build with Qt 5.13 |
9 |
|
10 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../grantlee/files/grantlee-5.1.0-qt-5.13.patch | 27 ++++++++++++++++++++++ |
14 |
dev-libs/grantlee/grantlee-5.1.0.ebuild | 5 ++-- |
15 |
2 files changed, 30 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/grantlee/files/grantlee-5.1.0-qt-5.13.patch b/dev-libs/grantlee/files/grantlee-5.1.0-qt-5.13.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..67a92c1f869 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/grantlee/files/grantlee-5.1.0-qt-5.13.patch |
22 |
@@ -0,0 +1,27 @@ |
23 |
+From 0cee029ee03ab4906c6d19b57458b5036852b0f8 Mon Sep 17 00:00:00 2001 |
24 |
+From: Michael Pyne <mpyne@×××.org> |
25 |
+Date: Tue, 18 Dec 2018 17:47:21 -0500 |
26 |
+Subject: [PATCH] Fix build with Qt 5.13 / GCC 8.2. |
27 |
+ |
28 |
+At this point Grantlee doesn't build for me because QList is an |
29 |
+incomplete type. I think the compiler is right to complain, so I fix by |
30 |
+including the appropriate header. |
31 |
+ |
32 |
+Fixes issue #47. |
33 |
+--- |
34 |
+ templates/lib/lexer_p.h | 2 +- |
35 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/templates/lib/lexer_p.h b/templates/lib/lexer_p.h |
38 |
+index 275aeea..1ae451a 100644 |
39 |
+--- a/templates/lib/lexer_p.h |
40 |
++++ b/templates/lib/lexer_p.h |
41 |
+@@ -24,7 +24,7 @@ |
42 |
+ #include "textprocessingmachine_p.h" |
43 |
+ #include "token.h" |
44 |
+ |
45 |
+-template <typename T> class QList; |
46 |
++#include <QList> |
47 |
+ |
48 |
+ namespace Grantlee |
49 |
+ { |
50 |
|
51 |
diff --git a/dev-libs/grantlee/grantlee-5.1.0.ebuild b/dev-libs/grantlee/grantlee-5.1.0.ebuild |
52 |
index 21f665921e5..328ce49c302 100644 |
53 |
--- a/dev-libs/grantlee/grantlee-5.1.0.ebuild |
54 |
+++ b/dev-libs/grantlee/grantlee-5.1.0.ebuild |
55 |
@@ -1,4 +1,4 @@ |
56 |
-# Copyright 1999-2018 Gentoo Foundation |
57 |
+# Copyright 1999-2019 Gentoo Authors |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
|
60 |
EAPI=6 |
61 |
@@ -29,7 +29,8 @@ DOCS=( AUTHORS CHANGELOG README.md ) |
62 |
|
63 |
PATCHES=( |
64 |
"${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch" |
65 |
- "${FILESDIR}/${PN}-5.1.0-slot.patch" |
66 |
+ "${FILESDIR}/${P}-slot.patch" |
67 |
+ "${FILESDIR}/${P}-qt-5.13.patch" |
68 |
) |
69 |
|
70 |
src_prepare() { |