<pre style='margin:0'>
NicosPavlov pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5a5682478dcd9be132040ccaf60622c31377c1d3">https://github.com/macports/macports-ports/commit/5a5682478dcd9be132040ccaf60622c31377c1d3</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5a56824 kde4-kile: Fix build on 10.14. Fixes https://trac.macports.org/ticket/58435.
</span>5a56824 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5a5682478dcd9be132040ccaf60622c31377c1d3
</span>Author: Nicolas Pavillon <pavillon.nicolas@gmail.com>
AuthorDate: Sat May 4 13:13:38 2019 +0900
<span style='display:block; white-space:pre;color:#404040;'> kde4-kile: Fix build on 10.14. Fixes https://trac.macports.org/ticket/58435.
</span>---
tex/kde4-kile/Portfile | 3 ++-
tex/kde4-kile/files/patch-editorkeysequencemanager.diff | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/kde4-kile/Portfile b/tex/kde4-kile/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d9546a2..47ea192 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/tex/kde4-kile/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/kde4-kile/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,7 +36,8 @@ depends_run-append port:okular \
</span>
patchfiles-append patch-kilestdtools.cpp.diff \
patch-kilestdtools.rc.macports.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-runTests.sh.macports.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-runTests.sh.macports.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-editorkeysequencemanager.diff
</span>
post-patch {
if {[variant_isset mactex]} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/kde4-kile/files/patch-editorkeysequencemanager.diff b/tex/kde4-kile/files/patch-editorkeysequencemanager.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..76f486f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/kde4-kile/files/patch-editorkeysequencemanager.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/editorkeysequencemanager-orig.cpp 2012-09-23 05:58:08.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/editorkeysequencemanager.cpp 2019-05-04 12:59:55.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -203,7 +203,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for(int i = 0; i < s.length(); ++i) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QString toCheck = s.right(s.length() - i);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(m_watchedKeySequencesList.contains(toCheck) > 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(m_watchedKeySequencesList.contains(toCheck) != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ m_view->document()->removeText(KTextEditor::Range(m_oldLine, m_oldCol - (s.length() - i - 1), m_oldLine, m_oldCol));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ m_typedSequence.clear(); // clean m_typedSequence to avoid wrong action triggering if one presses keys without printable character
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ emit detectedTypedKeySequence(toCheck);
</span></pre><pre style='margin:0'>
</pre>