mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-python/pygments: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST Pygments-2.11.2.tar.gz 4206258 BLAKE2B d9b7ac03ab564051df8eebf390586387d824584f5485eb6af2048cec181412fe2812409251c9c042421125a2579d9ac6de4006c1c0de025ed7b010482482b9f9 SHA512 606ff0c35fa47882f4c5c3794827132e1ee6ccbb4895ae858f9c93ea0c92b73163c9f4d630b51a8bb782ba0b4944a66d1059ad5d017d3191a0a5b30c1e5b8f9f
|
||||
DIST Pygments-2.12.0.tar.gz 4282017 BLAKE2B 9ad241d5bcafe59057e9495edb75468e6fa74d150f2d3266590a5a567a7df8ce2ef4ea18f90a8ab83e2fb84993fcf00dec12b04dd968f4c516b8339c49aecc08 SHA512 70bbfaefeb34f9afb5d74aa924ac3da4a913d1c7f607c0b3f80b6cd25c88a8996e516a689062bf2009c472b29999e309eb044f0f427fa1ea8479bf921b51c524
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
Subject: Fix relative path for doc generation
|
||||
|
||||
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
||||
|
||||
--- a/doc/conf.py
|
||||
+++ b/doc/conf.py
|
||||
@@ -244,7 +244,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
|
||||
ctx['languages'] = lexer_name_url
|
||||
|
||||
if pagename in ('styles', 'demo'):
|
||||
- with open('examples/example.py') as f:
|
||||
+ with open('doc/examples/example.py') as f:
|
||||
html = f.read()
|
||||
lexer = pygments.lexers.get_lexer_for_filename('example.py')
|
||||
min_contrasts = test_contrasts.min_contrasts()
|
||||
@@ -280,7 +280,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
|
||||
def source_read(app, docname, source):
|
||||
# linkify issue / PR numbers in changelog
|
||||
if docname == 'docs/changelog':
|
||||
- with open('../CHANGES') as f:
|
||||
+ with open('CHANGES') as f:
|
||||
changelog = f.read()
|
||||
|
||||
idx = changelog.find('\nVersion 2.4.2\n')
|
||||
--
|
||||
2.35.1
|
||||
@@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1 bash-completion-r1
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||
HOMEPAGE="
|
||||
https://pygments.org/
|
||||
https://github.com/pygments/pygments/
|
||||
https://pypi.org/project/Pygments/"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
||||
virtual/ttf-fonts
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.11.2-fix-docs-relative.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc \
|
||||
dev-python/wcag-contrast-ratio
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
newbashcomp external/pygments.bashcomp pygmentize
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1 bash-completion-r1
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||
HOMEPAGE="
|
||||
https://pygments.org/
|
||||
https://github.com/pygments/pygments/
|
||||
https://pypi.org/project/Pygments/"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
||||
virtual/ttf-fonts
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.11.2-fix-docs-relative.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc \
|
||||
dev-python/wcag-contrast-ratio
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
newbashcomp external/pygments.bashcomp pygmentize
|
||||
}
|
||||
Reference in New Issue
Block a user