diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-util/kdevelop-pg-qt | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-util/kdevelop-pg-qt')
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-util/kdevelop-pg-qt/Manifest b/dev-util/kdevelop-pg-qt/Manifest index 36a6deada059..11dc3555f695 100644 --- a/dev-util/kdevelop-pg-qt/Manifest +++ b/dev-util/kdevelop-pg-qt/Manifest @@ -1,3 +1,5 @@ +AUX kdevelop-pg-qt-2.2.2-port-away-from-depr-QString_midRef.patch 2233 BLAKE2B 47d0a31732915d5217b88aa573a2eb7d2803f9861455a67ad5bb0e88b8b689a789a23a13e7420757ddbfd23310af522ababb37fadefbbbc8e3e4c401fabd78fd SHA512 036a08ec55d4d1c2f766e499ef2c034255f02c0bf665b5651bb31d0e3a7ffa585ff18cc05a7f7efefb0933c727a5455caca0003a66b8a90258026bc419d78292 DIST kdevelop-pg-qt-2.2.2.tar.xz 660708 BLAKE2B 822753315969cf4176ed1a25bb27516661af865a4c337f069a892b008802359f4a933ebc9e9e1ac0c91d2314a6ec5cdcf91db4641e624e07373dfec47a71dcf1 SHA512 e82f2fa2aafa2c9f949e298989de70a0455c30f6bef4a40e38977c23ad645ee49a0a8c57b5c45d0ddfef13ee7b7e4efd2dc2ed3003a456f24108161415700369 +EBUILD kdevelop-pg-qt-2.2.2-r1.ebuild 529 BLAKE2B 1a8de7446a647fe28bbc60e13b4866998139eca0aae03730edb0d0fe1434b81f716dfd0f266b442819b9f34693dde4bae285b2b0fcc615e1f9aaf5d9446182a3 SHA512 70421991d553425c6d86bedd1c23514bfc04d388dcc23a7773c38dfdb6973fb36b6961faf5e1e574ced4495c112db986a961a437a66f399e0d9bc8cc97adec8c EBUILD kdevelop-pg-qt-2.2.2.ebuild 453 BLAKE2B 5633113b1eecf783fc90c9252f6a6a38ce0758df9642ae505d69ee8db19d85fa7c8b1ce649853127596eec28e2ed6dd33e7d1349b4c8cc24d79e0eec9d0a384a SHA512 2344e46d69f787b252e6c6f0996f8c35cc92dc05ca93585f0c3999ef970deaa36ab1936cda56772665ff783a1b9cc9e52b8443c4c1004c39697beb3917ea8479 MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6 diff --git a/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.2-port-away-from-depr-QString_midRef.patch b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.2-port-away-from-depr-QString_midRef.patch new file mode 100644 index 000000000000..360010c49cb3 --- /dev/null +++ b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.2-port-away-from-depr-QString_midRef.patch @@ -0,0 +1,53 @@ +From c210967f753b33db48dbf942c7b32e67363ca204 Mon Sep 17 00:00:00 2001 +From: "Friedrich W. H. Kossebau" <kossebau@kde.org> +Date: Sun, 30 Oct 2022 11:56:59 +0100 +Subject: [PATCH] Port away from deprecated QString::midRef + +GIT_SILENT +--- + kdev-pg/kdev-pg-debug-visitor-gen.cpp | 2 +- + kdev-pg/kdev-pg-regexp.cpp | 6 +++--- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/kdev-pg/kdev-pg-debug-visitor-gen.cpp b/kdev-pg/kdev-pg-debug-visitor-gen.cpp +index 418d044..d4394f7 100644 +--- a/kdev-pg/kdev-pg-debug-visitor-gen.cpp ++++ b/kdev-pg/kdev-pg-debug-visitor-gen.cpp +@@ -72,7 +72,7 @@ void GenerateDebugVisitor::operator()() + out << " tokenString += QStringLiteral(\" ...\");" << endl; + out << " tokenString += QStringLiteral(\"%1 more\").arg(end-begin-20);" << endl; + out << " tokenString += QStringLiteral(\"... \");" << endl; +- out << " tokenString += m_content.midRef(end-10, 10);" << endl; ++ out << " tokenString += QStringView(m_content).mid(end-10, 10);" << endl; + out << " }" << endl; + out << " else {" << endl; + out << " tokenString = m_content.mid(begin, end-begin+1);" << endl; +diff --git a/kdev-pg/kdev-pg-regexp.cpp b/kdev-pg/kdev-pg-regexp.cpp +index fda19f9..808018f 100644 +--- a/kdev-pg/kdev-pg-regexp.cpp ++++ b/kdev-pg/kdev-pg-regexp.cpp +@@ -71,10 +71,10 @@ inline QString codeForDot(QString str) + int npos = str.indexOf("\n\01!ASIgnore\"!!\n# ", pos); + if(npos == -1) + { +- out += str.midRef(pos); ++ out += QStringView(str).mid(pos); + break; + } +- out += str.midRef(pos, npos - pos); ++ out += QStringView(str).mid(pos, npos - pos); + int nlpos = str.indexOf('\n', npos + 17); + int codeendpos = str.indexOf("\n\01!AS/Ignore\"!!\n", nlpos); + if(nlpos == -1 || codeendpos == -1) +@@ -82,7 +82,7 @@ inline QString codeForDot(QString str) + out += "<junk>"; + break; + } +- out += str.midRef(nlpos + 1, codeendpos - nlpos - 1); ++ out += QStringView(str).mid(nlpos + 1, codeendpos - nlpos - 1); + pos = codeendpos + 17; + } + return out.replace('\"', "\\\"").replace('\n', '\t').trimmed(); +-- +GitLab + diff --git a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.2-r1.ebuild b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.2-r1.ebuild new file mode 100644 index 000000000000..1d77f74d84fc --- /dev/null +++ b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.2-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_TEST="true" +inherit ecm kde.org + +DESCRIPTION="LL(1) parser generator used mainly by KDevelop language plugins" +HOMEPAGE="https://www.kdevelop.org/" +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="LGPL-2+ LGPL-2.1+" +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +BDEPEND=" + app-alternatives/yacc + app-alternatives/lex +" + +PATCHES=( "${FILESDIR}/${P}-port-away-from-depr-QString_midRef.patch" ) |