summaryrefslogtreecommitdiff
path: root/kde-frameworks/ktexteditor
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-06 14:10:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-06 14:10:02 +0100
commit7e17b5aabc330abb894f2b90bef0e3fcbcd180d2 (patch)
tree0b0cd08ce6e24faf7c868b07127ee0b6b32153c7 /kde-frameworks/ktexteditor
parentda3552023d9aae2ee5183df71a80a8169414974e (diff)
gentoo auto-resync : 06:08:2022 - 14:10:01
Diffstat (limited to 'kde-frameworks/ktexteditor')
-rw-r--r--kde-frameworks/ktexteditor/Manifest4
-rw-r--r--kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch29
-rw-r--r--kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-toggle-comment.patch112
-rw-r--r--kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild60
4 files changed, 0 insertions, 205 deletions
diff --git a/kde-frameworks/ktexteditor/Manifest b/kde-frameworks/ktexteditor/Manifest
index 63a093cd11ea..e0277ef43538 100644
--- a/kde-frameworks/ktexteditor/Manifest
+++ b/kde-frameworks/ktexteditor/Manifest
@@ -1,7 +1,3 @@
-AUX ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch 1094 BLAKE2B 803b7094d6dd25034e1d5d9ab7d33d06fd1527700f8ae49b57e7d345ff93acea37cda10e4cc3f5bae936fbd66ef44d7e6109912f04ff76b9ee7594cb94889706 SHA512 df3401f4f415a24038b8394e7053dd260e0dd6ea9b2accf857daedb95bf34f5a48e96795cd90488f51db09bc865590fca9e0f8fbe5b81eba2acaf9df521e20f3
-AUX ktexteditor-5.92.0-fix-toggle-comment.patch 4843 BLAKE2B 7723bd5bc04bcc97779c04b34fa2403bbd0084fa26e2f92d83719216e36b4162660153eabda30bb1616240fc164dfef27118ece97633096ff1d711037dcbe3ee SHA512 170277709bc93ab650085f7bed3930cb391a5926da31cd030a0eb0565d645a7a028db93a12ed09ae88119730bfb5364f282b41a82557616878d04a8c0259986e
-DIST ktexteditor-5.92.0.tar.xz 2347752 BLAKE2B c4e2356132f535dccbea1bae2355f3455b91d98c1cd99735db0ec39f0b2bc68f062e60e85f085e3614420d673487ea436243be485b321576022243736dec9f57 SHA512 5455fd579047db0010036afe0490620089687e206440ff77af270d9dcc25c1d48b3b8d763144f416cc539038c29e0e70703a1300b7ad78d0db59320a0712c402
DIST ktexteditor-5.96.0.tar.xz 2404504 BLAKE2B 3d35559a25a111b3a21ea48f8512b237f343fe31e4cce5031a60b6efd3eb1f832255ed327ec63c6d5e81bc2be2f7eac3eb524ef7b354516273f070a5057effa1 SHA512 83528972d06bdebbd5f00ff17b40bf6f413b29590127ab7ef2d842bf7bf248e18dfb9dfef4ad3501b2689fe14d6b0444ee654a06c4f58a0dc23bdebae2f7ea04
-EBUILD ktexteditor-5.92.0-r1.ebuild 1662 BLAKE2B b0cf93eabd029c5831da8dfbc1c1dfd042687c05473a42417279665cabfb121ff80614b5e0066698185d2ea09e65a9d3757e475935052f9c9378f9b6aba15e2d SHA512 f19e21b3b1e2116ee64143eb2a79ba79670ea449cc152ddb964b0ded9abfa4184ea099440ad53aa54c2df3624567e1c8d270a8970dcab5a3eccfc00136e7c108
EBUILD ktexteditor-5.96.0.ebuild 1536 BLAKE2B 5a8955b09d45544ef0a2a08e12ea809b303ba9b745d59cc6c761e23a34df9dae381eaf5a2ed69e858fdc3901871ee53caf5a17d4d9c276a52c13786b60adac60 SHA512 6d9678d1cdfcb2f81033e05d2291a8c8aa0799c0db197193df15afd0f5c6776f9632ba54309882a29a87d82fda91f55e4e1dae748676a1dc4ebca9492e6c661d
MISC metadata.xml 558 BLAKE2B 4f17698120e7bb1f131519e4a43f33e99916d3690a548412572a43cc060a115eeed44d0ca0cab43f7c3fea8c098f4c495ce571ea1cb6ce78a25e7ef0fb49f1e5 SHA512 441d42f0f301c60e77f90d40cf57f76addaf455225a99e63ea95ed3b7a08d944fe80260c7188a989d830277006da96f271fb6a02bad41ead3bea7358621ae04a
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
deleted file mode 100644
index b77a72a3e502..000000000000
--- a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From ad82b876016367bd9765185dba84600985e5d0fd Mon Sep 17 00:00:00 2001
-From: Waqar Ahmed <waqar.17a@gmail.com>
-Date: Fri, 18 Mar 2022 10:14:28 +0500
-Subject: [PATCH] Fix crash with stale indexes
-
-BUG: 451593
----
- src/completion/katecompletionmodel.cpp | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/src/completion/katecompletionmodel.cpp b/src/completion/katecompletionmodel.cpp
-index 1e241f0d..d9bb8421 100644
---- a/src/completion/katecompletionmodel.cpp
-+++ b/src/completion/katecompletionmodel.cpp
-@@ -914,6 +914,11 @@ QModelIndex KateCompletionModel::mapToSource(const QModelIndex &proxyIndex) cons
- }
-
- if (Group *g = groupOfParent(proxyIndex)) {
-+ if (!m_rowTable.contains(g)) {
-+ qWarning() << Q_FUNC_INFO << "Stale proxy index for which there is no group";
-+ return {};
-+ }
-+
- if (proxyIndex.row() >= 0 && proxyIndex.row() < (int)g->filtered.size()) {
- ModelRow source = g->filtered[proxyIndex.row()].sourceRow();
- return source.second.sibling(source.second.row(), proxyIndex.column());
---
-GitLab
-
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
deleted file mode 100644
index bac8cd017e68..000000000000
--- a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-toggle-comment.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-From 1173d5184e8b073790556dbdba92a8b8abdd62dc Mon Sep 17 00:00:00 2001
-From: Waqar Ahmed <waqar.17a@gmail.com>
-Date: Mon, 14 Mar 2022 09:44:54 +0500
-Subject: [PATCH] Fix toggle comment with space at the start
-
-BUG: 451471
----
- autotests/src/katedocument_test.cpp | 48 +++++++++++++++++++++++++++++
- autotests/src/katedocument_test.h | 1 +
- src/document/katedocument.cpp | 10 +++++-
- 3 files changed, 58 insertions(+), 1 deletion(-)
-
-diff --git a/autotests/src/katedocument_test.cpp b/autotests/src/katedocument_test.cpp
-index f0946829..a842f960 100644
---- a/autotests/src/katedocument_test.cpp
-+++ b/autotests/src/katedocument_test.cpp
-@@ -851,4 +851,52 @@ void KateDocumentTest::testKeepUndoOverReload()
- QCOMPARE(doc.text(), insertedText + initialText);
- }
-
-+void KateDocumentTest::testToggleComment()
-+{
-+ { // BUG: 451471
-+ KTextEditor::DocumentPrivate doc;
-+ QVERIFY(doc.highlightingModes().contains(QStringLiteral("Python")));
-+ doc.setHighlightingMode(QStringLiteral("Python"));
-+ const QString original = QStringLiteral("import hello;\n def method():");
-+ doc.setText(original);
-+ QVERIFY(doc.lines() == 2);
-+
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); // 0 == ToggleComment
-+ QCOMPARE(doc.text(), QStringLiteral("#import hello;\n #def method():"));
-+
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0); // 0 == ToggleComment
-+ QCOMPARE(doc.text(), original);
-+ }
-+
-+ { // Comment C++;
-+ KTextEditor::DocumentPrivate doc;
-+ QVERIFY(doc.highlightingModes().contains(QStringLiteral("C++")));
-+ doc.setHighlightingMode(QStringLiteral("C++"));
-+ QString original = QStringLiteral("#include<iostream>\nint main()\n{\nreturn 0;\n}\n");
-+ doc.setText(original);
-+ QVERIFY(doc.lines() == 6);
-+
-+ doc.commentSelection(doc.documentRange(), {5, 0}, false, 0); // 0 == ToggleComment
-+ QCOMPARE(doc.text(), QStringLiteral("// #include<iostream>\n// int main()\n// {\n// return 0;\n// }\n"));
-+
-+ doc.commentSelection(doc.documentRange(), {5, 0}, false, 0); // 0 == ToggleComment
-+ QCOMPARE(doc.text(), original);
-+
-+ // Comment just a portion
-+ doc.commentSelection(Range(1, 0, 1, 3), Cursor(1, 3), false, 0);
-+ QCOMPARE(doc.text(), QStringLiteral("#include<iostream>\n/*int*/ main()\n{\nreturn 0;\n}\n"));
-+ doc.commentSelection(Range(1, 0, 1, 7), Cursor(1, 3), false, 0);
-+ QCOMPARE(doc.text(), original);
-+
-+ // mixed, one line commented, one not => both get commented
-+ original = QStringLiteral(" // int main()\n{}");
-+ doc.setText(original);
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0);
-+ QCOMPARE(doc.text(), QStringLiteral("// // int main()\n// {}"));
-+ doc.commentSelection(doc.documentRange(), {1, 2}, false, 0);
-+ // after uncommenting, we get original text back with one line commented
-+ QCOMPARE(doc.text(), original);
-+ }
-+}
-+
- #include "katedocument_test.moc"
-diff --git a/autotests/src/katedocument_test.h b/autotests/src/katedocument_test.h
-index c3b24b4c..0076f879 100644
---- a/autotests/src/katedocument_test.h
-+++ b/autotests/src/katedocument_test.h
-@@ -46,6 +46,7 @@ private Q_SLOTS:
- void testIndentOnPaste();
- void testAboutToSave();
- void testKeepUndoOverReload();
-+ void testToggleComment();
- };
-
- #endif // KATE_DOCUMENT_TEST_H
-diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp
-index 56e8fc7d..b72592b6 100644
---- a/src/document/katedocument.cpp
-+++ b/src/document/katedocument.cpp
-@@ -3995,7 +3995,11 @@ bool KTextEditor::DocumentPrivate::removeStartLineCommentFromSelection(KTextEdit
- bool allLinesAreCommented = true;
- for (int line = endLine; line >= startLine; line--) {
- const auto ln = m_buffer->plainLine(line);
-- if (!ln->startsWith(shortCommentMark) && !ln->startsWith(longCommentMark)) {
-+ const QString &text = ln->text();
-+ QStringView textView(text.data(), text.size());
-+ // Must trim any spaces at the beginning
-+ textView = textView.trimmed();
-+ if (!textView.startsWith(shortCommentMark) && !textView.startsWith(longCommentMark)) {
- allLinesAreCommented = false;
- break;
- }
-@@ -4031,6 +4035,10 @@ void KTextEditor::DocumentPrivate::commentSelection(KTextEditor::Range selection
-
- int startAttrib = 0;
- Kate::TextLine ln = kateTextLine(line);
-+ if (!ln) {
-+ qWarning() << __FUNCTION__ << __LINE__ << "Unexpected null TextLine for " << line << " lineCount: " << lines();
-+ return;
-+ }
-
- if (selectionCol < ln->length()) {
- startAttrib = ln->attribute(selectionCol);
---
-GitLab
-
diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild b/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild
deleted file mode 100644
index 6671981ff5f7..000000000000
--- a/kde-frameworks/ktexteditor/ktexteditor-5.92.0-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PVCUT=$(ver_cut 1-2)
-QTMIN=5.15.2
-VIRTUALX_REQUIRED="test"
-inherit ecm kde.org
-
-DESCRIPTION="Framework providing a full text editor component"
-
-LICENSE="LGPL-2+"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
-IUSE="+editorconfig"
-
-RESTRICT="test"
-
-DEPEND="
- >=dev-qt/qtdeclarative-${QTMIN}:5
- >=dev-qt/qtgui-${QTMIN}:5
- >=dev-qt/qtprintsupport-${QTMIN}:5
- >=dev-qt/qtwidgets-${QTMIN}:5
- >=dev-qt/qtxml-${QTMIN}:5
- =kde-frameworks/karchive-${PVCUT}*:5
- =kde-frameworks/kauth-${PVCUT}*:5
- =kde-frameworks/kcodecs-${PVCUT}*:5
- =kde-frameworks/kcompletion-${PVCUT}*:5
- =kde-frameworks/kconfig-${PVCUT}*:5
- =kde-frameworks/kconfigwidgets-${PVCUT}*:5
- =kde-frameworks/kcoreaddons-${PVCUT}*:5
- =kde-frameworks/kguiaddons-${PVCUT}*:5
- =kde-frameworks/ki18n-${PVCUT}*:5
- =kde-frameworks/kiconthemes-${PVCUT}*:5
- =kde-frameworks/kio-${PVCUT}*:5
- =kde-frameworks/kitemviews-${PVCUT}*:5
- =kde-frameworks/kjobwidgets-${PVCUT}*:5
- =kde-frameworks/kparts-${PVCUT}*:5
- =kde-frameworks/ktextwidgets-${PVCUT}*:5
- =kde-frameworks/kwidgetsaddons-${PVCUT}*:5
- =kde-frameworks/kxmlgui-${PVCUT}*:5
- =kde-frameworks/sonnet-${PVCUT}*:5
- =kde-frameworks/syntax-highlighting-${PVCUT}*:5
- editorconfig? ( app-text/editorconfig-core-c )
-"
-RDEPEND="${DEPEND}"
-BDEPEND="test? ( >=kde-frameworks/kservice-${PVCUT}:5 )"
-
-PATCHES=(
- "${FILESDIR}/${P}-fix-crash-w-stale-indexes.patch" # KDE-bug 451593
- "${FILESDIR}/${P}-fix-toggle-comment.patch" # KDE-bug 451471
-)
-
-src_configure() {
- local mycmakeargs=(
- $(cmake_use_find_package editorconfig EditorConfig)
- )
-
- ecm_src_configure
-}