1 |
commit: 66330a02cabfcd7eccc04e99e4eb7d6bfd7e0f31 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 6 06:59:20 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 6 07:18:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66330a02 |
7 |
|
8 |
kde-frameworks/ktexteditor: drop 5.92.0-r1 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
kde-frameworks/ktexteditor/Manifest | 1 - |
13 |
...xteditor-5.92.0-fix-crash-w-stale-indexes.patch | 29 ------ |
14 |
.../ktexteditor-5.92.0-fix-toggle-comment.patch | 112 --------------------- |
15 |
.../ktexteditor/ktexteditor-5.92.0-r1.ebuild | 60 ----------- |
16 |
4 files changed, 202 deletions(-) |
17 |
|
18 |
diff --git a/kde-frameworks/ktexteditor/Manifest b/kde-frameworks/ktexteditor/Manifest |
19 |
index 75039f499304..f7b05348da57 100644 |
20 |
--- a/kde-frameworks/ktexteditor/Manifest |
21 |
+++ b/kde-frameworks/ktexteditor/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST ktexteditor-5.92.0.tar.xz 2347752 BLAKE2B c4e2356132f535dccbea1bae2355f3455b91d98c1cd99735db0ec39f0b2bc68f062e60e85f085e3614420d673487ea436243be485b321576022243736dec9f57 SHA512 5455fd579047db0010036afe0490620089687e206440ff77af270d9dcc25c1d48b3b8d763144f416cc539038c29e0e70703a1300b7ad78d0db59320a0712c402 |
24 |
DIST ktexteditor-5.96.0.tar.xz 2404504 BLAKE2B 3d35559a25a111b3a21ea48f8512b237f343fe31e4cce5031a60b6efd3eb1f832255ed327ec63c6d5e81bc2be2f7eac3eb524ef7b354516273f070a5057effa1 SHA512 83528972d06bdebbd5f00ff17b40bf6f413b29590127ab7ef2d842bf7bf248e18dfb9dfef4ad3501b2689fe14d6b0444ee654a06c4f58a0dc23bdebae2f7ea04 |
25 |
|
26 |
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch |
27 |
deleted file mode 100644 |
28 |
index b77a72a3e502..000000000000 |
29 |
--- a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch |
30 |
+++ /dev/null |
31 |
@@ -1,29 +0,0 @@ |
32 |
-From ad82b876016367bd9765185dba84600985e5d0fd Mon Sep 17 00:00:00 2001 |
33 |
-From: Waqar Ahmed <waqar.17a@×××××.com> |
34 |
-Date: Fri, 18 Mar 2022 10:14:28 +0500 |
35 |
-Subject: [PATCH] Fix crash with stale indexes |
36 |
- |
37 |
-BUG: 451593 |
38 |
---- |
39 |
- src/completion/katecompletionmodel.cpp | 5 +++++ |
40 |
- 1 file changed, 5 insertions(+) |
41 |
- |
42 |
-diff --git a/src/completion/katecompletionmodel.cpp b/src/completion/katecompletionmodel.cpp |
43 |
-index 1e241f0d..d9bb8421 100644 |
44 |
---- a/src/completion/katecompletionmodel.cpp |
45 |
-+++ b/src/completion/katecompletionmodel.cpp |
46 |
-@@ -914,6 +914,11 @@ QModelIndex KateCompletionModel::mapToSource(const QModelIndex &proxyIndex) cons |
47 |
- } |
48 |
- |
49 |
- if (Group *g = groupOfParent(proxyIndex)) { |
50 |
-+ if (!m_rowTable.contains(g)) { |
51 |
-+ qWarning() << Q_FUNC_INFO << "Stale proxy index for which there is no group"; |
52 |
-+ return {}; |
53 |
-+ } |
54 |
-+ |
55 |
- if (proxyIndex.row() >= 0 && proxyIndex.row() < (int)g->filtered.size()) { |
56 |
- ModelRow source = g->filtered[proxyIndex.row()].sourceRow(); |
57 |
- return source.second.sibling(source.second.row(), proxyIndex.column()); |
58 |
--- |
59 |
-GitLab |
60 |
- |
61 |
|
62 |
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-toggle-comment.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-toggle-comment.patch |
63 |
deleted file mode 100644 |
64 |
index bac8cd017e68..000000000000 |
65 |
--- a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-toggle-comment.patch |
66 |
+++ /dev/null |
67 |
@@ -1,112 +0,0 @@ |
68 |
-From 1173d5184e8b073790556dbdba92a8b8abdd62dc Mon Sep 17 00:00:00 2001 |
69 |
-From: Waqar Ahmed <waqar.17a@×××××.com> |
70 |
-Date: Mon, 14 Mar 2022 09:44:54 +0500 |
71 |
-Subject: [PATCH] Fix toggle comment with space at the start |
72 |
- |
73 |
-BUG: 451471 |
74 |
---- |
75 |
- autotests/src/katedocument_test.cpp | 48 +++++++++++++++++++++++++++++ |
76 |
- autotests/src/katedocument_test.h | 1 + |
77 |
- src/document/katedocument.cpp | 10 +++++- |
78 |
- 3 files changed, 58 insertions(+), 1 deletion(-) |
79 |
- |
80 |
-diff --git a/autotests/src/katedocument_test.cpp b/autotests/src/katedocument_test.cpp |
81 |
-index f0946829..a842f960 100644 |
82 |
---- a/autotests/src/katedocument_test.cpp |
83 |
-+++ b/autotests/src/katedocument_test.cpp |
84 |
-@@ -851,4 +851,52 @@ void KateDocumentTest::testKeepUndoOverReload() |
85 |
- QCOMPARE(doc.text(), insertedText + initialText); |
86 |
- } |
87 |
- |
88 |
-+void KateDocumentTest::testToggleComment() |
89 |
-+{ |
90 |
-+ { // BUG: 451471 |
91 |
-+ KTextEditor::DocumentPrivate doc; |
92 |
-+ QVERIFY(doc.highlightingModes().contains(QStringLiteral("Python"))); |
93 |
-+ doc.setHighlightingMode(QStringLiteral("Python")); |
94 |
-+ const QString original = QStringLiteral("import hello;\n def method():"); |
95 |
-+ doc.setText(original); |
96 |
-+ QVERIFY(doc.lines() == 2); |
97 |
-+ |
98 |
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); // 0 == ToggleComment |
99 |
-+ QCOMPARE(doc.text(), QStringLiteral("#import hello;\n #def method():")); |
100 |
-+ |
101 |
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); // 0 == ToggleComment |
102 |
-+ QCOMPARE(doc.text(), original); |
103 |
-+ } |
104 |
-+ |
105 |
-+ { // Comment C++; |
106 |
-+ KTextEditor::DocumentPrivate doc; |
107 |
-+ QVERIFY(doc.highlightingModes().contains(QStringLiteral("C++"))); |
108 |
-+ doc.setHighlightingMode(QStringLiteral("C++")); |
109 |
-+ QString original = QStringLiteral("#include<iostream>\nint main()\n{\nreturn 0;\n}\n"); |
110 |
-+ doc.setText(original); |
111 |
-+ QVERIFY(doc.lines() == 6); |
112 |
-+ |
113 |
-+ doc.commentSelection(doc.documentRange(), {5, 0}, false, 0); // 0 == ToggleComment |
114 |
-+ QCOMPARE(doc.text(), QStringLiteral("// #include<iostream>\n// int main()\n// {\n// return 0;\n// }\n")); |
115 |
-+ |
116 |
-+ doc.commentSelection(doc.documentRange(), {5, 0}, false, 0); // 0 == ToggleComment |
117 |
-+ QCOMPARE(doc.text(), original); |
118 |
-+ |
119 |
-+ // Comment just a portion |
120 |
-+ doc.commentSelection(Range(1, 0, 1, 3), Cursor(1, 3), false, 0); |
121 |
-+ QCOMPARE(doc.text(), QStringLiteral("#include<iostream>\n/*int*/ main()\n{\nreturn 0;\n}\n")); |
122 |
-+ doc.commentSelection(Range(1, 0, 1, 7), Cursor(1, 3), false, 0); |
123 |
-+ QCOMPARE(doc.text(), original); |
124 |
-+ |
125 |
-+ // mixed, one line commented, one not => both get commented |
126 |
-+ original = QStringLiteral(" // int main()\n{}"); |
127 |
-+ doc.setText(original); |
128 |
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); |
129 |
-+ QCOMPARE(doc.text(), QStringLiteral("// // int main()\n// {}")); |
130 |
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); |
131 |
-+ // after uncommenting, we get original text back with one line commented |
132 |
-+ QCOMPARE(doc.text(), original); |
133 |
-+ } |
134 |
-+} |
135 |
-+ |
136 |
- #include "katedocument_test.moc" |
137 |
-diff --git a/autotests/src/katedocument_test.h b/autotests/src/katedocument_test.h |
138 |
-index c3b24b4c..0076f879 100644 |
139 |
---- a/autotests/src/katedocument_test.h |
140 |
-+++ b/autotests/src/katedocument_test.h |
141 |
-@@ -46,6 +46,7 @@ private Q_SLOTS: |
142 |
- void testIndentOnPaste(); |
143 |
- void testAboutToSave(); |
144 |
- void testKeepUndoOverReload(); |
145 |
-+ void testToggleComment(); |
146 |
- }; |
147 |
- |
148 |
- #endif // KATE_DOCUMENT_TEST_H |
149 |
-diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp |
150 |
-index 56e8fc7d..b72592b6 100644 |
151 |
---- a/src/document/katedocument.cpp |
152 |
-+++ b/src/document/katedocument.cpp |
153 |
-@@ -3995,7 +3995,11 @@ bool KTextEditor::DocumentPrivate::removeStartLineCommentFromSelection(KTextEdit |
154 |
- bool allLinesAreCommented = true; |
155 |
- for (int line = endLine; line >= startLine; line--) { |
156 |
- const auto ln = m_buffer->plainLine(line); |
157 |
-- if (!ln->startsWith(shortCommentMark) && !ln->startsWith(longCommentMark)) { |
158 |
-+ const QString &text = ln->text(); |
159 |
-+ QStringView textView(text.data(), text.size()); |
160 |
-+ // Must trim any spaces at the beginning |
161 |
-+ textView = textView.trimmed(); |
162 |
-+ if (!textView.startsWith(shortCommentMark) && !textView.startsWith(longCommentMark)) { |
163 |
- allLinesAreCommented = false; |
164 |
- break; |
165 |
- } |
166 |
-@@ -4031,6 +4035,10 @@ void KTextEditor::DocumentPrivate::commentSelection(KTextEditor::Range selection |
167 |
- |
168 |
- int startAttrib = 0; |
169 |
- Kate::TextLine ln = kateTextLine(line); |
170 |
-+ if (!ln) { |
171 |
-+ qWarning() << __FUNCTION__ << __LINE__ << "Unexpected null TextLine for " << line << " lineCount: " << lines(); |
172 |
-+ return; |
173 |
-+ } |
174 |
- |
175 |
- if (selectionCol < ln->length()) { |
176 |
- startAttrib = ln->attribute(selectionCol); |
177 |
--- |
178 |
-GitLab |
179 |
- |
180 |
|
181 |
diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild b/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild |
182 |
deleted file mode 100644 |
183 |
index 6671981ff5f7..000000000000 |
184 |
--- a/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild |
185 |
+++ /dev/null |
186 |
@@ -1,60 +0,0 @@ |
187 |
-# Copyright 1999-2022 Gentoo Authors |
188 |
-# Distributed under the terms of the GNU General Public License v2 |
189 |
- |
190 |
-EAPI=8 |
191 |
- |
192 |
-PVCUT=$(ver_cut 1-2) |
193 |
-QTMIN=5.15.2 |
194 |
-VIRTUALX_REQUIRED="test" |
195 |
-inherit ecm kde.org |
196 |
- |
197 |
-DESCRIPTION="Framework providing a full text editor component" |
198 |
- |
199 |
-LICENSE="LGPL-2+" |
200 |
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" |
201 |
-IUSE="+editorconfig" |
202 |
- |
203 |
-RESTRICT="test" |
204 |
- |
205 |
-DEPEND=" |
206 |
- >=dev-qt/qtdeclarative-${QTMIN}:5 |
207 |
- >=dev-qt/qtgui-${QTMIN}:5 |
208 |
- >=dev-qt/qtprintsupport-${QTMIN}:5 |
209 |
- >=dev-qt/qtwidgets-${QTMIN}:5 |
210 |
- >=dev-qt/qtxml-${QTMIN}:5 |
211 |
- =kde-frameworks/karchive-${PVCUT}*:5 |
212 |
- =kde-frameworks/kauth-${PVCUT}*:5 |
213 |
- =kde-frameworks/kcodecs-${PVCUT}*:5 |
214 |
- =kde-frameworks/kcompletion-${PVCUT}*:5 |
215 |
- =kde-frameworks/kconfig-${PVCUT}*:5 |
216 |
- =kde-frameworks/kconfigwidgets-${PVCUT}*:5 |
217 |
- =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
218 |
- =kde-frameworks/kguiaddons-${PVCUT}*:5 |
219 |
- =kde-frameworks/ki18n-${PVCUT}*:5 |
220 |
- =kde-frameworks/kiconthemes-${PVCUT}*:5 |
221 |
- =kde-frameworks/kio-${PVCUT}*:5 |
222 |
- =kde-frameworks/kitemviews-${PVCUT}*:5 |
223 |
- =kde-frameworks/kjobwidgets-${PVCUT}*:5 |
224 |
- =kde-frameworks/kparts-${PVCUT}*:5 |
225 |
- =kde-frameworks/ktextwidgets-${PVCUT}*:5 |
226 |
- =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 |
227 |
- =kde-frameworks/kxmlgui-${PVCUT}*:5 |
228 |
- =kde-frameworks/sonnet-${PVCUT}*:5 |
229 |
- =kde-frameworks/syntax-highlighting-${PVCUT}*:5 |
230 |
- editorconfig? ( app-text/editorconfig-core-c ) |
231 |
-" |
232 |
-RDEPEND="${DEPEND}" |
233 |
-BDEPEND="test? ( >=kde-frameworks/kservice-${PVCUT}:5 )" |
234 |
- |
235 |
-PATCHES=( |
236 |
- "${FILESDIR}/${P}-fix-crash-w-stale-indexes.patch" # KDE-bug 451593 |
237 |
- "${FILESDIR}/${P}-fix-toggle-comment.patch" # KDE-bug 451471 |
238 |
-) |
239 |
- |
240 |
-src_configure() { |
241 |
- local mycmakeargs=( |
242 |
- $(cmake_use_find_package editorconfig EditorConfig) |
243 |
- ) |
244 |
- |
245 |
- ecm_src_configure |
246 |
-} |