From 6278a199a6e3a0636b6466bc7eba9fbf6ae507f2 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 24 Apr 2024 20:15:27 +0000 Subject: Adding metadata --- ...ents-github-lexers-0.0.5-escape-sequences.patch | 22 ++++++++++++++++ .../pygments-github-lexers-0.0.5-r1.ebuild | 26 ------------------- .../pygments-github-lexers-0.0.5-r2.ebuild | 29 ++++++++++++++++++++++ 3 files changed, 51 insertions(+), 26 deletions(-) create mode 100644 dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch delete mode 100644 dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild create mode 100644 dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild (limited to 'dev-python/pygments-github-lexers') diff --git a/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch new file mode 100644 index 000000000000..65c90e857bb2 --- /dev/null +++ b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch @@ -0,0 +1,22 @@ +diff --git a/pygments_github_lexers/github.py b/pygments_github_lexers/github.py +index d2fa4b2..36a5c94 100644 +--- a/pygments_github_lexers/github.py ++++ b/pygments_github_lexers/github.py +@@ -53,7 +53,7 @@ class Dasm16Lexer(RegexLexer): + + # Regexes yo + char = r'[a-zA-Z$._0-9@]' +- identifier = r'(?:[a-zA-Z$_]' + char + '*|\.' + char + '+)' ++ identifier = r'(?:[a-zA-Z$_]' + char + r'*|\.' + char + '+)' + number = r'[+-]?(?:0[xX][a-zA-Z0-9]+|\d+)' + binary_number = r'0b[01_]+' + instruction = r'(?i)(' + '|'.join(INSTRUCTIONS) + ')' +@@ -379,7 +379,7 @@ class TOMLLexer(RegexLexer): + (r'#.*?$', Comment.Single), + (r'"(\\\\|\\"|[^"])*"', String), + (r'(true|false)$', Keyword.Constant), +- ('[a-zA-Z_][a-zA-Z0-9_\-]*', Name), ++ (r'[a-zA-Z_][a-zA-Z0-9_\-]*', Name), + + # Datetime + (r'\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z', Number.Integer), diff --git a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild deleted file mode 100644 index aaf575dc72df..000000000000 --- a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2019-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 - -DESCRIPTION="Pygments Github custom lexers" -HOMEPAGE="https://github.com/liluo/pygments-github-lexers" -SRC_URI="https://github.com/liluo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND=" - dev-python/pygments[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} -" - -# no tests diff --git a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild new file mode 100644 index 000000000000..65d13c18be36 --- /dev/null +++ b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild @@ -0,0 +1,29 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Pygments Github custom lexers" +HOMEPAGE="https://github.com/liluo/pygments-github-lexers" +SRC_URI="https://github.com/liluo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pygments[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/pygments-github-lexers-0.0.5-escape-sequences.patch" +) + +# no tests -- cgit v1.3