diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /kde-frameworks/syntax-highlighting | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'kde-frameworks/syntax-highlighting')
-rw-r--r-- | kde-frameworks/syntax-highlighting/Manifest | 7 | ||||
-rw-r--r-- | kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.85.0-python-add-yield-from-keyword.patch | 170 | ||||
-rw-r--r-- | kde-frameworks/syntax-highlighting/syntax-highlighting-5.88.0.ebuild | 2 | ||||
-rw-r--r-- | kde-frameworks/syntax-highlighting/syntax-highlighting-5.89.0.ebuild (renamed from kde-frameworks/syntax-highlighting/syntax-highlighting-5.85.0-r1.ebuild) | 15 |
4 files changed, 10 insertions, 184 deletions
diff --git a/kde-frameworks/syntax-highlighting/Manifest b/kde-frameworks/syntax-highlighting/Manifest index 599cacfa687d..17e7a824cf15 100644 --- a/kde-frameworks/syntax-highlighting/Manifest +++ b/kde-frameworks/syntax-highlighting/Manifest @@ -1,6 +1,5 @@ -AUX syntax-highlighting-5.85.0-python-add-yield-from-keyword.patch 11150 BLAKE2B ac67afb36241a591e9a773d359452f8c101df21a62d332e76617be455f962e944a18c7c1cf61c2b37ccba85a6079c509290e5dc7f2897173e6c7e46e20226571 SHA512 cf5472233c61033625e178dc19bfd5ffb2181b2ecdb969807feceb38645a74dcd04909b01d1410fa71b597654bcedf81c09626ef5973c7f909d03822183c3231 -DIST syntax-highlighting-5.85.0.tar.xz 2334784 BLAKE2B faaa2e57b4f5acc6b090e0ffebbeb70715dc164f634683b2d442017087aed630581ab5d91e04fd4591d28c3a6d7bbfff395a36af6ed3911de79a512c00fe1f3a SHA512 d01ef96ba4fc2c281918850adbc72239f60875a6c9f1c589286eaa4cb7a18be96e8b184f77e1a056ed17ece7d70338e4b6fd7cadf69a307e4a8bdc0ce6dc3d38 DIST syntax-highlighting-5.88.0.tar.xz 2372812 BLAKE2B 260622a6ae7faf007e103d06570761d08c23eb6df11fe1d4241e4773b703ac87452f96bb9794e89df53e3c654761cafe2c4502342937fb3880a4bd2f5c2d1186 SHA512 1e1a294b382c7697bc89a27a32911770b4a4fce222e5bb2520cdd42a2792521df9592bd71b87918ed967b225d95cb95832e5325e721dc68cf3fa9b2d8edb396f -EBUILD syntax-highlighting-5.85.0-r1.ebuild 660 BLAKE2B e861fac8517510979628715a60d0ac0155aa03a46d486e470b8a0d4c0f2c7459311e07af65bd069c67bfc313b8983d47ae78e045f571c33da7c842a026c82e7a SHA512 8e8f123727f2bcd03a2e8f5e977a9a96cc5e0e76a8ae2bc446cfb1e8f30d58f55a13dca64914b6539fb6a0c5df2bb1ca2ee99f2af998e99c7583cecd7a389f76 -EBUILD syntax-highlighting-5.88.0.ebuild 612 BLAKE2B 865b99b2cd6fe42069a21f2ef893c051807811721f7cbdcf87183033c1bc9dda8b94cee3cf44a369843b1f87c4b349d805c403b991986e972a20281b7c16d02a SHA512 bad503e1715ec2082ca6875db5d53ba4466b251dd6ec9e879e6a2146b2f7a9a18886bfd7d37944d3841d5bb464fad6ae71429bdb6e732892749d449bd6737eeb +DIST syntax-highlighting-5.89.0.tar.xz 2381864 BLAKE2B 9d1deab5d9c2a0a08992202bcfc7f74ddab7c8541309abc0a80c8af5e2e0abedc2074e23648077ccd96f00733c2d2f65038c7bcd6a1b3c2489f3dd7fb2762b71 SHA512 af60f9a85fe01dae6c49f33e8982b5bf9fd8285abaceb10893e3657b021361573eee29b08e59631ee2dadc7cfe9dc76b60e52b8cc1e8d0f8c8fa73ba41bdd96b +EBUILD syntax-highlighting-5.88.0.ebuild 609 BLAKE2B 048e02b53c08995d67a824bdb3ed56df6101a9f34d21af1e7e70d533ef23906019c226188f7cce5266263235e17772079b8dddc23e42f796895f25908112648a SHA512 f876802027ea0a9238dc9f1a6517939ed2b77fa7c7e194f35193b4097c2b5aa175de00b4e35ac837e9398c57f516a20d0f9e59dc6dc2fa59cec08fbdc01ecb19 +EBUILD syntax-highlighting-5.89.0.ebuild 612 BLAKE2B 865b99b2cd6fe42069a21f2ef893c051807811721f7cbdcf87183033c1bc9dda8b94cee3cf44a369843b1f87c4b349d805c403b991986e972a20281b7c16d02a SHA512 bad503e1715ec2082ca6875db5d53ba4466b251dd6ec9e879e6a2146b2f7a9a18886bfd7d37944d3841d5bb464fad6ae71429bdb6e732892749d449bd6737eeb MISC metadata.xml 456 BLAKE2B 4392b1cc6f304778d71236d5eb557dfbbd530143eea5cad9a3c3034e3e8b22c835f6c7f980124a21cefd35a2dd1efd5110adc0a5342170f88dfd7418b12bee99 SHA512 7ba65331cad434e2dceee012a5458d268eb2a04e0f7276b265c15644e6db5209bc7eee7d9695aa0038c435711e0f6f0dc53c7bae9d773b48f01e22a22e4dbb80 diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.85.0-python-add-yield-from-keyword.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.85.0-python-add-yield-from-keyword.patch deleted file mode 100644 index ba1ae38355e8..000000000000 --- a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.85.0-python-add-yield-from-keyword.patch +++ /dev/null @@ -1,170 +0,0 @@ -From 439f8cbfe0b5d1f931c2233d1790e1280170c24c Mon Sep 17 00:00:00 2001 -From: Jan Paul Batrina <jpmbatrina01@gmail.com> -Date: Sat, 28 Aug 2021 21:27:41 +0800 -Subject: [PATCH] Python: Add "yield from" keyword - -BUG: 441540 ---- - autotests/folding/test.py.fold | 9 +++++++++ - autotests/html/test.py.dark.html | 9 +++++++++ - autotests/html/test.py.html | 9 +++++++++ - autotests/input/test.py | 9 +++++++++ - autotests/reference/test.py.ref | 9 +++++++++ - data/syntax/python.xml | 17 +++++++++++++++-- - 6 files changed, 60 insertions(+), 2 deletions(-) - -diff --git a/autotests/folding/test.py.fold b/autotests/folding/test.py.fold -index 7bbf054c..5e7a3ba8 100644 ---- a/autotests/folding/test.py.fold -+++ b/autotests/folding/test.py.fold -@@ -118,6 +118,15 @@ match<beginfold id='2'>(</beginfold id='2'>command.split<beginfold id='2'>(</beg - case <beginfold id='5'>[</beginfold id='5'>"quit"<endfold id='5'>]</endfold id='5'>: - print<beginfold id='2'>(</beginfold id='2'>"Goodbye!"<endfold id='2'>)</endfold id='2'> - -+def func1<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>: -+ yield 1 -+ yield from <beginfold id='5'>[</beginfold id='5'>func<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>, 1, 2, "3"<endfold id='5'>]</endfold id='5'> -+ # invalid, "from" no longer part of "yield from" -+ yield, from 1 -+ -+async def func2<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>: -+ await asyncio.sleep<beginfold id='2'>(</beginfold id='2'>1<endfold id='2'>)</endfold id='2'> -+ - "\\\\\\\\\\ENSURE THAT THIS AND THE FOLLOWING LINES ARE AT THE <endfold id='6'>END</endfold id='6'> OF THE FILE\\\\\\\\\\ \ - " - </indentfold>a = 'otherwise all succeeding lines will be -diff --git a/autotests/html/test.py.dark.html b/autotests/html/test.py.dark.html -index 23718b11..1d6c1dd2 100644 ---- a/autotests/html/test.py.dark.html -+++ b/autotests/html/test.py.dark.html -@@ -124,6 +124,15 @@ match(command.split()) - <span style="color:#fdbc4b;font-weight:bold;">case</span> [<span style="color:#f44f4f;">"quit"</span>]: - <span style="color:#7f8c8d;">print</span>(<span style="color:#f44f4f;">"Goodbye!"</span>) - -+<span style="font-weight:bold;">def</span> func1(): -+ <span style="color:#fdbc4b;font-weight:bold;">yield</span> <span style="color:#f67400;">1</span> -+ <span style="color:#fdbc4b;font-weight:bold;">yield</span> <span style="color:#fdbc4b;font-weight:bold;">from</span> [func(), <span style="color:#f67400;">1</span>, <span style="color:#f67400;">2</span>, <span style="color:#f44f4f;">"3"</span>] -+ <span style="color:#7a7c7d;"># invalid, "from" no longer part of "yield from"</span> -+ <span style="color:#fdbc4b;font-weight:bold;">yield</span>, <span style="color:#27ae60;">from</span> <span style="color:#f67400;">1</span> -+ -+<span style="color:#fdbc4b;font-weight:bold;">async</span> <span style="font-weight:bold;">def</span> func2(): -+ <span style="color:#fdbc4b;font-weight:bold;">await</span> asyncio.sleep(<span style="color:#f67400;">1</span>) -+ - <span style="color:#7a7c7d;">"</span><span style="color:#3daee9;">\\\\\\\\\\</span><span style="color:#7a7c7d;">ENSURE THAT THIS AND THE FOLLOWING LINES ARE AT THE </span><span style="color:#2980b9;background-color:#153042;">END</span><span style="color:#7a7c7d;"> OF THE FILE</span><span style="color:#3daee9;">\\\\\\\\\\</span><span style="color:#7a7c7d;"> </span><span style="color:#3daee9;">\</span> - <span style="color:#7a7c7d;">"</span> - a <span style="color:#3f8058;">=</span> <span style="color:#f44f4f;">'otherwise all succeeding lines will be</span> -diff --git a/autotests/html/test.py.html b/autotests/html/test.py.html -index 55cfefb0..4d7a2709 100644 ---- a/autotests/html/test.py.html -+++ b/autotests/html/test.py.html -@@ -124,6 +124,15 @@ match(command.split()) - <span style="font-weight:bold;">case</span> [<span style="color:#bf0303;">"quit"</span>]: - <span style="color:#644a9b;font-weight:bold;">print</span>(<span style="color:#bf0303;">"Goodbye!"</span>) - -+<span style="font-weight:bold;">def</span> func1(): -+ <span style="font-weight:bold;">yield</span> <span style="color:#b08000;">1</span> -+ <span style="font-weight:bold;">yield</span> <span style="font-weight:bold;">from</span> [func(), <span style="color:#b08000;">1</span>, <span style="color:#b08000;">2</span>, <span style="color:#bf0303;">"3"</span>] -+ <span style="color:#898887;"># invalid, "from" no longer part of "yield from"</span> -+ <span style="font-weight:bold;">yield</span>, <span style="color:#ff5500;">from</span> <span style="color:#b08000;">1</span> -+ -+<span style="font-weight:bold;">async</span> <span style="font-weight:bold;">def</span> func2(): -+ <span style="font-weight:bold;">await</span> asyncio.sleep(<span style="color:#b08000;">1</span>) -+ - <span style="color:#898887;">"</span><span style="color:#924c9d;">\\\\\\\\\\</span><span style="color:#898887;">ENSURE THAT THIS AND THE FOLLOWING LINES ARE AT THE </span><span style="color:#0057ae;background-color:#e0e9f8;">END</span><span style="color:#898887;"> OF THE FILE</span><span style="color:#924c9d;">\\\\\\\\\\</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\</span> - <span style="color:#898887;">"</span> - a <span style="color:#ca60ca;">=</span> <span style="color:#bf0303;">'otherwise all succeeding lines will be</span> -diff --git a/autotests/input/test.py b/autotests/input/test.py -index 3eb8378d..d91db578 100644 ---- a/autotests/input/test.py -+++ b/autotests/input/test.py -@@ -118,6 +118,15 @@ match(command.split()): - case ["quit"]: - print("Goodbye!") - -+def func1(): -+ yield 1 -+ yield from [func(), 1, 2, "3"] -+ # invalid, "from" no longer part of "yield from" -+ yield, from 1 -+ -+async def func2(): -+ await asyncio.sleep(1) -+ - "\\\\\\\\\\ENSURE THAT THIS AND THE FOLLOWING LINES ARE AT THE END OF THE FILE\\\\\\\\\\ \ - " - a = 'otherwise all succeeding lines will be -diff --git a/autotests/reference/test.py.ref b/autotests/reference/test.py.ref -index 9c5bdb54..1742da2b 100644 ---- a/autotests/reference/test.py.ref -+++ b/autotests/reference/test.py.ref -@@ -118,6 +118,15 @@ - <Normal Text> </Normal Text><Flow Control Keyword>case</Flow Control Keyword><Normal Text> [</Normal Text><String>"quit"</String><Normal Text>]:</Normal Text><br/> - <Normal Text> </Normal Text><Builtin Function>print</Builtin Function><Normal Text>(</Normal Text><String>"Goodbye!"</String><Normal Text>)</Normal Text><br/> - <Normal Text></Normal Text><br/> -+<Definition Keyword>def</Definition Keyword><Normal Text> func1():</Normal Text><br/> -+<Normal Text> </Normal Text><Flow Control Keyword>yield</Flow Control Keyword><Normal Text> </Normal Text><Int>1</Int><br/> -+<Normal Text> </Normal Text><Flow Control Keyword>yield</Flow Control Keyword><Normal Text> </Normal Text><Flow Control Keyword>from</Flow Control Keyword><Normal Text> [func(), </Normal Text><Int>1</Int><Normal Text>, </Normal Text><Int>2</Int><Normal Text>, </Normal Text><String>"3"</String><Normal Text>]</Normal Text><br/> -+<Normal Text> </Normal Text><Comment># invalid, "from" no longer part of "yield from"</Comment><br/> -+<Normal Text> </Normal Text><Flow Control Keyword>yield</Flow Control Keyword><Normal Text>, </Normal Text><Import>from</Import><Normal Text> </Normal Text><Int>1</Int><br/> -+<Normal Text></Normal Text><br/> -+<Flow Control Keyword>async</Flow Control Keyword><Normal Text> </Normal Text><Definition Keyword>def</Definition Keyword><Normal Text> func2():</Normal Text><br/> -+<Normal Text> </Normal Text><Flow Control Keyword>await</Flow Control Keyword><Normal Text> asyncio.sleep(</Normal Text><Int>1</Int><Normal Text>)</Normal Text><br/> -+<Normal Text></Normal Text><br/> - <Comment>"</Comment><String Char>\\\\\\\\\\</String Char><Comment>ENSURE THAT THIS AND THE FOLLOWING LINES ARE AT THE </Comment><Region Marker>END</Region Marker><Comment> OF THE FILE</Comment><String Char>\\\\\\\\\\</String Char><Comment> </Comment><String Char>\</String Char><br/> - <Comment>"</Comment><br/> - <Normal Text>a </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><String>'otherwise all succeeding lines will be</String><br/> -diff --git a/data/syntax/python.xml b/data/syntax/python.xml -index 7143bf30..676872f0 100644 ---- a/data/syntax/python.xml -+++ b/data/syntax/python.xml -@@ -52,7 +52,7 @@ - <!-- v2.07 add support for %prog and co, see bug 142832 --> - <!-- v2.08 add missing overloaders, new Python 3 statements, builtins, and keywords --> - <!-- v2.29 recognize escape sequenzes correctly --> --<language name="Python" version="21" style="python" indenter="python" kateversion="5.0" section="Scripts" extensions="*.py;*.pyw;SConstruct;SConscript;*.FCMacro" mimetype="application/x-python;text/x-python;text/x-python3" casesensitive="1" author="Michael Bueker" license=""> -+<language name="Python" version="22" style="python" indenter="python" kateversion="5.0" section="Scripts" extensions="*.py;*.pyw;SConstruct;SConscript;*.FCMacro" mimetype="application/x-python;text/x-python;text/x-python3" casesensitive="1" author="Michael Bueker" license=""> - <highlighting> - <list name="import"> - <item>import</item> -@@ -90,10 +90,17 @@ - <item>try</item> - <item>while</item> - <item>with</item> -- <item>yield</item> - <item>async</item> - <item>await</item> - </list> -+ <list name="flow_yield"> -+ <item>yield</item> -+ <!-- -+ "yield from" added here as a keyword for autocompletion. The actual handling -+ is in context="yield" so that we won't need to add space as a weakDeliminator. -+ --> -+ <item>yield from</item> -+ </list> - <list name="patternmatching"> - <item>match</item> - <item>case</item> -@@ -380,6 +387,7 @@ - <keyword attribute="Definition Keyword" String="defs" context="#stay"/> - <keyword attribute="Operator Keyword" String="operators" context="#stay"/> - <keyword attribute="Flow Control Keyword" String="flow" context="#stay"/> -+ <keyword attribute="Flow Control Keyword" String="flow_yield" context="yield"/> - <keyword attribute="Flow Control Keyword" String="patternmatching" context="Pattern Matching" lookAhead="1" firstNonSpace="1"/> - <keyword attribute="Builtin Function" String="builtinfuncs" context="#stay"/> - <keyword attribute="Special Variable" String="specialvars" context="#stay"/> -@@ -428,6 +436,11 @@ - <RegExpr attribute="Error" String="[\w\d]+" context="#pop#pop"/> - </context> - -+ <context name="yield" attribute="Flow Control Keyword" lineEndContext="#pop" fallthrough="1" fallthroughContext="#pop"> -+ <DetectSpaces attribute="Normal Text" context="#stay"/> -+ <WordDetect attribute="Flow Control Keyword" context="#pop" String="from"/> -+ </context> -+ - <context name="Pattern Matching" attribute="Flow Control Keyword" lineEndContext="#pop"> - <!-- - Python 3.10: https://docs.python.org/3.10/reference/compound_stmts.html#the-match-statement --- -GitLab - diff --git a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.88.0.ebuild b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.88.0.ebuild index 094222310b95..e2fcbfdda880 100644 --- a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.88.0.ebuild +++ b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.88.0.ebuild @@ -9,7 +9,7 @@ inherit ecm kde.org DESCRIPTION="Framework for syntax highlighting" LICENSE="MIT" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" IUSE="nls" DEPEND=" diff --git a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.85.0-r1.ebuild b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.89.0.ebuild index d9a1de132dd5..094222310b95 100644 --- a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.85.0-r1.ebuild +++ b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.89.0.ebuild @@ -9,23 +9,20 @@ inherit ecm kde.org DESCRIPTION="Framework for syntax highlighting" LICENSE="MIT" -KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" IUSE="nls" -BDEPEND=" - dev-lang/perl - nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 ) -" DEPEND=" + >=dev-qt/qtdeclarative-${QTMIN}:5 >=dev-qt/qtgui-${QTMIN}:5 >=dev-qt/qtnetwork-${QTMIN}:5 >=dev-qt/qtxmlpatterns-${QTMIN}:5 " RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${P}-python-add-yield-from-keyword.patch # KDE-bug 441540 -) +BDEPEND=" + dev-lang/perl + nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 ) +" src_install() { ecm_src_install |