1 |
commit: ac7535cce2ad786c5ec95d8c68902afd64a3cbca |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 11 23:23:57 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 11 23:34:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac7535cc |
7 |
|
8 |
kde-apps/cantor: Fix build w/ USE=python and KF-5.31 |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
kde-apps/cantor/cantor-16.12.2.ebuild | 5 +++- |
13 |
.../files/cantor-16.12.2-python-kf-5.31.patch | 28 ++++++++++++++++++++++ |
14 |
2 files changed, 32 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/kde-apps/cantor/cantor-16.12.2.ebuild b/kde-apps/cantor/cantor-16.12.2.ebuild |
17 |
index 19314488a8..669532f809 100644 |
18 |
--- a/kde-apps/cantor/cantor-16.12.2.ebuild |
19 |
+++ b/kde-apps/cantor/cantor-16.12.2.ebuild |
20 |
@@ -56,7 +56,10 @@ RDEPEND="${RDEPEND}" |
21 |
|
22 |
RESTRICT+=" test" |
23 |
|
24 |
-PATCHES=( "${FILESDIR}"/${P}-bashism.patch ) |
25 |
+PATCHES=( |
26 |
+ "${FILESDIR}"/${P}-bashism.patch |
27 |
+ "${FILESDIR}"/${P}-python-kf-5.31.patch |
28 |
+) |
29 |
|
30 |
pkg_pretend() { |
31 |
kde5_pkg_pretend |
32 |
|
33 |
diff --git a/kde-apps/cantor/files/cantor-16.12.2-python-kf-5.31.patch b/kde-apps/cantor/files/cantor-16.12.2-python-kf-5.31.patch |
34 |
new file mode 100644 |
35 |
index 0000000000..b8c5161b49 |
36 |
--- /dev/null |
37 |
+++ b/kde-apps/cantor/files/cantor-16.12.2-python-kf-5.31.patch |
38 |
@@ -0,0 +1,28 @@ |
39 |
+commit 4b8ef6bed62daced90c7826985650c2a813d2996 |
40 |
+Author: Jonathan Riddell <jr@××××××××.org> |
41 |
+Date: Wed Feb 8 14:56:48 2017 +0000 |
42 |
+ |
43 |
+ remove modern C++ use to fix compile with current KDE policy |
44 |
+ |
45 |
+diff --git a/src/backends/python/pythonhighlighter.cpp b/src/backends/python/pythonhighlighter.cpp |
46 |
+index 4064524..87b10dd 100644 |
47 |
+--- a/src/backends/python/pythonhighlighter.cpp |
48 |
++++ b/src/backends/python/pythonhighlighter.cpp |
49 |
+@@ -87,7 +87,7 @@ void PythonHighlighter::highlightBlock(const QString &text) |
50 |
+ while (pos < text.length()) { |
51 |
+ // Trying to close current environments |
52 |
+ bool triggered = false; |
53 |
+- for (int i = 0; i < flags.size() and not triggered; i++) { |
54 |
++ for (int i = 0; i < flags.size() && !triggered; i++) { |
55 |
+ int flag = flags[i]; |
56 |
+ QRegExp ®exp = regexps[i]; |
57 |
+ QTextCharFormat &format = formats[i]; |
58 |
+@@ -126,7 +126,7 @@ void PythonHighlighter::highlightBlock(const QString &text) |
59 |
+ singleLineCommentStart.indexIn(text, pos); |
60 |
+ |
61 |
+ if (singleLineCommentStartPos != -1 |
62 |
+- and singleLineCommentStartPos < minPos) { |
63 |
++ && singleLineCommentStartPos < minPos) { |
64 |
+ setFormat(pos, text.length() - pos, commentFormat()); |
65 |
+ break; |
66 |
+ } else if (minRegexp) { |