Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments/
Date: Wed, 11 May 2022 17:55:02
Message-Id: 1652291676.5f365b06c8d8f3a27ef8540690ca2c1acbd6f7b9.mgorny@gentoo
1 commit: 5f365b06c8d8f3a27ef8540690ca2c1acbd6f7b9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 17:17:00 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 17:54:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f365b06
7
8 dev-python/pygments: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pygments/pygments-2.12.0-r1.ebuild | 45 +++++++++++++++++++++++++++
13 1 file changed, 45 insertions(+)
14
15 diff --git a/dev-python/pygments/pygments-2.12.0-r1.ebuild b/dev-python/pygments/pygments-2.12.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..a9ce01eaa3ee
18 --- /dev/null
19 +++ b/dev-python/pygments/pygments-2.12.0-r1.ebuild
20 @@ -0,0 +1,45 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1 bash-completion-r1
30 +
31 +MY_P=${P^}
32 +DESCRIPTION="Pygments is a syntax highlighting package written in Python"
33 +HOMEPAGE="
34 + https://pygments.org/
35 + https://github.com/pygments/pygments/
36 + https://pypi.org/project/Pygments/
37 +"
38 +SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
39 +S=${WORKDIR}/${MY_P}
40 +
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44 +
45 +BDEPEND="
46 + test? (
47 + dev-python/lxml[${PYTHON_USEDEP}]
48 + dev-python/pillow[${PYTHON_USEDEP}]
49 + dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
50 + virtual/ttf-fonts
51 + )
52 +"
53 +
54 +PATCHES=(
55 + "${FILESDIR}/${PN}-2.11.2-fix-docs-relative.patch"
56 +)
57 +
58 +distutils_enable_sphinx doc \
59 + dev-python/wcag-contrast-ratio
60 +distutils_enable_tests pytest
61 +
62 +python_install_all() {
63 + distutils-r1_python_install_all
64 + newbashcomp external/pygments.bashcomp pygmentize
65 +}