summaryrefslogtreecommitdiff
path: root/kde-frameworks/syntax-highlighting
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /kde-frameworks/syntax-highlighting
reinit the tree, so we can have metadata
Diffstat (limited to 'kde-frameworks/syntax-highlighting')
-rw-r--r--kde-frameworks/syntax-highlighting/Manifest8
-rw-r--r--kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-powershell.patch40
-rw-r--r--kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-regexp.patch86
-rw-r--r--kde-frameworks/syntax-highlighting/metadata.xml8
-rw-r--r--kde-frameworks/syntax-highlighting/syntax-highlighting-5.37.0-r1.ebuild32
-rw-r--r--kde-frameworks/syntax-highlighting/syntax-highlighting-5.38.0.ebuild27
6 files changed, 201 insertions, 0 deletions
diff --git a/kde-frameworks/syntax-highlighting/Manifest b/kde-frameworks/syntax-highlighting/Manifest
new file mode 100644
index 000000000000..ca371d82b800
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/Manifest
@@ -0,0 +1,8 @@
+AUX syntax-highlighting-5.37.0-powershell.patch 1174 SHA256 6c1e8543376ea46022ad78b2a9a32d7cb1fab8f7f170a28c10b8e190fd3baed3 SHA512 c4db6ad2b3390ba3f613d1da0df513206a5424a96252721eae9cd0ef4f07fcf4f60b9af0c7b9436717a8e4f0f5dc2d785f1e03f29c6d780968f0e375a540a1e0 WHIRLPOOL 1d4409ee2100ef8e65a4249ac88feb52a0db1bf7fcd49f5b246415567cd6722d3bb149a3e1ada4bc0ca2ac17f3f0adbbdf6b0c043ee4a0bcf063bb107b04118c
+AUX syntax-highlighting-5.37.0-regexp.patch 4729 SHA256 062768c8aaafcfa67898f1861780c869cc38e6386cec0e1686106795ad744fd2 SHA512 228faab9af63806eb763e93c903ee3ea7bc9b16e72588de28e86e4c172ededa2c69b6f70c19f74b0d71339b4af459382b5aa427f3c9c78395f09d22a2aa72101 WHIRLPOOL d9aef682c1a95f3316856fb68a17959022accf61e4741c8b15ee7ce127ecbf8f2693005e2f119470acf4e33622b9b8353630c5a1fc6ca898c77253789378dc7e
+DIST syntax-highlighting-5.37.0.tar.xz 1050660 SHA256 e2d075482bc5409646db40374c6caa0b055276e1a5cd8e30065e9f4fd0baa6d0 SHA512 d49f62934283c07c1b6e8fad11b9fa469b21bb55f35ddbc6c28ab29bd79b7cba67a93d0b46abb8b3d86ee7ba7a90ea50a98553aac7bdfe396bc2b010611c24c2 WHIRLPOOL a2cf1c91e69bf028c5b96e4d6121e532d40cca0ba61be7fd5cf16858fde87437fc145aab6ae2c5eedc1559157bd9443f2cd2f4d6cb814adc1e195033bb2013b5
+DIST syntax-highlighting-5.38.0.tar.xz 1090228 SHA256 d4b887e2b4c0bb0d0c723325b11897d1ab38a644e3276d57eae8393928783680 SHA512 1ca56399cd78e593644b3d474b4eff979762300d6d27f19a57e1e66954342ec0c6de28b4309f284d7c3c3d1f71d1ea6ca108cee0c5bb8ca1803aed5f0c69076c WHIRLPOOL 68a96115ecffddafea1ebb7b185b9c07dea077a74d639edc3a060d126ba91e08d91bdbe932dcf1041d04d122da8ad8678670e74b5484fbccd2d58cfdfbacef44
+EBUILD syntax-highlighting-5.37.0-r1.ebuild 616 SHA256 de310bce47624a32ce73c5b35a95a13fa20362d3196cec51c3f3e2b5f85093cd SHA512 fee2713fe0af6bd51af88b73409a8b5abcb54d75dfc98339472c710256dd0a744bb23361b587e41c25681e006639acbbdbc97abb62fef2420d6c993ea5a75014 WHIRLPOOL f4766a4fb91e1eab741368270c4a8d384d6930e7aba6a3728eb3735ee62a7340fafc02df9a21d38d409fd5588dfc8a0f24b568493a365ae8abedb439b5d78f8f
+EBUILD syntax-highlighting-5.38.0.ebuild 527 SHA256 7f1478a69f147e1ad7b367a6bb139f9b23fa4a4f4cd964240a253a520144a5b3 SHA512 4d70f7d6d9bf1e07e87775dcb20500c54a145765e18a54e357440acf27edaffe371bc4ea062aa60ce9421b2b58cf471aeb545bd4973c2d146afdc98dc23b75ef WHIRLPOOL 946d1366a30ac62d78d061f7d330df82ab4e301959c1a760a58f9fd801316a6db78ceaf1cb37f004958a3205d32de9bc224baf6d6b274f7430ea86f61dcbfc89
+MISC ChangeLog 764 SHA256 24f77995f793d18d6d2d52f848c4b057a33bda3db0e55f4e4ede318ba1b53311 SHA512 1bd9ed57a4d52d477f0ef72d250f5efbffb80bdd6d092c4b5545650285bd775d996ff5ddff0f516c5116f8a28281e977b668f854fa2f6513eb76dbd667b03af4 WHIRLPOOL f9981f9fdc2f9b9bf9c5bb110ae3e48a359b499e9ee7d3f0abc5bbe811ba0205c5a7c765c6b71c5b512b74882fd7d08f27ab01516b22805213852110aca9526b
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-powershell.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-powershell.patch
new file mode 100644
index 000000000000..5da7999dffbd
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-powershell.patch
@@ -0,0 +1,40 @@
+From 26daf7ee5b4a4534d918ed7d9e66d64cb30b0c26 Mon Sep 17 00:00:00 2001
+From: Till Schfer <till2.schaefer@tu-dortmund.de>
+Date: Tue, 22 Aug 2017 18:47:04 +0200
+Subject: fix: plaintext is highlighted as powershell
+
+Summary: see [[ https://bugs.kde.org/show_bug.cgi?id=383848 | Bug 383848 ]]
+
+Reviewers: #framework_syntax_hightlighting, vkrause
+
+Reviewed By: #framework_syntax_hightlighting, vkrause
+
+Subscribers: dhaumann, #framework_syntax_hightlighting
+
+Tags: #frameworks
+
+Differential Revision: https://phabricator.kde.org/D7464
+---
+ data/syntax/powershell.xml | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/data/syntax/powershell.xml b/data/syntax/powershell.xml
+index 3a38846..2b73cfe 100644
+--- a/data/syntax/powershell.xml
++++ b/data/syntax/powershell.xml
+@@ -1,11 +1,10 @@
+ <!DOCTYPE language SYSTEM "language.dtd">
+ <language
+ name="PowerShell"
+- version="1"
++ version="2"
+ kateversion="5.0"
+ extensions="*.ps1;*.ps1m;*.ps1d"
+ section="Scripts"
+- mimetype="text/plain"
+ author="Motoki Kashihara (motoki8791@gmail.com); Michael Lombardi (Michael.T.Lombardi@outlook.com)"
+ casesensitive="0"
+ license="LGPLv2+">
+--
+cgit v0.11.2
+
diff --git a/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-regexp.patch b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-regexp.patch
new file mode 100644
index 000000000000..f0a87e6d76df
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/files/syntax-highlighting-5.37.0-regexp.patch
@@ -0,0 +1,86 @@
+From ad077e4045e650e1708b6c81d33a14f4a9c99a5d Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heirecka@exherbo.org>
+Date: Wed, 23 Aug 2017 12:28:52 +0200
+Subject: Escape hyphen in rest.xml regular expressions
+
+Summary:
+The unescaped hyphen caused a build failure with pcre2-10.30 due to a broken
+regex: 'syntax-highlighting/data/syntax/rest.xml" line 27 broken regex:
+"^\\s*\\.\\. [w-_\\.]+::(\\s|$)" problem: "range out of order in character
+class" at offset 12'.
+
+The pcre2pattern documentation says this:
+
+"Perl treats a hyphen as a literal if it appears before or after a POSIX class
+(see below) or before or after a character type escape such as as \d or \H.
+However, unless the hyphen is the last character in the class, Perl outputs a
+warning in its warning mode, as this is most likely a user error. As PCRE2 has
+no facility for warning, an error is given in these cases."
+
+Test Plan:
+cmake && make && make test works fine pcre2-10.30, quick look at
+http://docutils.sourceforge.net/FAQ.txt in kate seems fine.
+
+Reviewers: #framework_syntax_hightlighting, kfunk
+
+Subscribers: #frameworks
+
+Tags: #frameworks
+
+BUG: 383632
+
+Differential Revision: https://phabricator.kde.org/D7478
+---
+ data/syntax/rest.xml | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/data/syntax/rest.xml b/data/syntax/rest.xml
+index 1363965..ccfd08a 100644
+--- a/data/syntax/rest.xml
++++ b/data/syntax/rest.xml
+@@ -11,7 +11,7 @@
+ Copyright 2010 Matt Williams (matt@milliams.com)
+ Copyright 2014 Matthew Woehlke (mw_triad@users.sourceforge.net)
+ -->
+-<language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="2" kateversion="2.4" casesensitive="1">
++<language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="3" kateversion="2.4" casesensitive="1">
+
+ <highlighting>
+
+@@ -24,11 +24,11 @@
+ <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[&SimpleReferenceNameChars;]+\]\s" minimal="true" column="0"/>
+ <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[&SimpleReferenceNameChars; ]+:(\s|$))|__ )" minimal="true" column="0"/>
+ <RegExpr attribute="Code" String="^\s*\.\. code-block::" context="CodeBlock" column="0"/>
+- <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. [\w-_\.]+::(\s|$)" minimal="true" column="0"/>
++ <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. [\w\-_\.]+::(\s|$)" minimal="true" column="0"/>
+ <RegExpr attribute="Code" String="::$" context="CodeBlock" />
+ <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[&SimpleReferenceNameChars; ]+\|\s+[&SimpleReferenceNameChars;]+::\s" minimal="true" column="0"/>
+ <RegExpr attribute="Field" String=":(?=([^:]*\\:)*[^:]*:(\s|$))" context="Field" firstNonSpace="true"/>
+- <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.\s(?![\w-_\.]+::(\s|$))" column="0"/>
++ <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.\s(?![\w\-_\.]+::(\s|$))" column="0"/>
+ </context>
+
+ <context name="InlineMarkup" attribute="Normal" lineEndContext="#stay">
+@@ -38,8 +38,8 @@
+ <RegExpr attribute="FootnoteReference" context="#stay" String="&inlinestart;\[[&SimpleReferenceNameChars;]+\]_&inlineend;" minimal="true"/>
+ <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;`[^\s].*`_&inlineend;" minimal="true"/>
+ <RegExpr attribute="HyperlinkReference" context="#stay" String="&inlinestart;\w+_&inlineend;" minimal="true"/>
+- <RegExpr attribute="InterpretedText" context="TrailingRole" String="&inlinestart;`[^\s].*`(?=:[\w-_\.\+]+:)" minimal="true"/>
+- <RegExpr attribute="Role" String=":[\w-_\.\+]+:(?=`)" context="Role"/>
++ <RegExpr attribute="InterpretedText" context="TrailingRole" String="&inlinestart;`[^\s].*`(?=:[\w\-_\.\+]+:)" minimal="true"/>
++ <RegExpr attribute="Role" String=":[\w\-_\.\+]+:(?=`)" context="Role"/>
+ </context>
+
+ <context name="Field" attribute="Field" lineEndContext="#stay">
+@@ -56,7 +56,7 @@
+ <DetectChar attribute="InterpretedText" char="`" context="#pop!InterpretedText" />
+ </context>
+ <context name="TrailingRole" attribute="Role" lineEndContext="#pop">
+- <RegExpr attribute="Role" String=":[\w-_\.\+]+:" context="#pop"/>
++ <RegExpr attribute="Role" String=":[\w\-_\.\+]+:" context="#pop"/>
+ </context>
+ <context name="Comment" attribute="Comment" lineEndContext="#stay" dynamic="true">
+ <RegExpr attribute="Code" String="^%1 " context="#stay" column="0" dynamic="true"/>
+--
+cgit v0.11.2
+
diff --git a/kde-frameworks/syntax-highlighting/metadata.xml b/kde-frameworks/syntax-highlighting/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.37.0-r1.ebuild b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.37.0-r1.ebuild
new file mode 100644
index 000000000000..3d73aef9a630
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.37.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="Framework for syntax highlighting"
+LICENSE="LGPL-2+ LGPL-2.1+"
+KEYWORDS="amd64 ~arm ~arm64 x86"
+IUSE="nls"
+
+RDEPEND="
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtxmlpatterns)
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ nls? ( $(add_qt_dep linguist-tools) )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-powershell.patch"
+ "${FILESDIR}/${P}-regexp.patch"
+)
+
+src_install() {
+ kde5_src_install
+ dobin "${BUILD_DIR}"/src/indexer/katehighlightingindexer
+}
diff --git a/kde-frameworks/syntax-highlighting/syntax-highlighting-5.38.0.ebuild b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.38.0.ebuild
new file mode 100644
index 000000000000..a4de123cab8b
--- /dev/null
+++ b/kde-frameworks/syntax-highlighting/syntax-highlighting-5.38.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="Framework for syntax highlighting"
+LICENSE="LGPL-2+ LGPL-2.1+"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="nls"
+
+RDEPEND="
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtxmlpatterns)
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ nls? ( $(add_qt_dep linguist-tools) )
+"
+
+src_install() {
+ kde5_src_install
+ dobin "${BUILD_DIR}"/bin/katehighlightingindexer
+}