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/sphinx_rtd_theme/
Date: Mon, 30 May 2022 20:49:30
Message-Id: 1653943547.dc978db605600b00655e4db1d7eea40a62440c09.mgorny@gentoo
1 commit: dc978db605600b00655e4db1d7eea40a62440c09
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 20:45:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 20:45:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc978db6
7
8 dev-python/sphinx_rtd_theme: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../sphinx_rtd_theme-1.0.0-r1.ebuild | 43 ++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-1.0.0-r1.ebuild b/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-1.0.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..69ee8e469815
18 --- /dev/null
19 +++ b/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-1.0.0-r1.ebuild
20 @@ -0,0 +1,43 @@
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
30 +
31 +DESCRIPTION="ReadTheDocs.org theme for Sphinx"
32 +HOMEPAGE="
33 + https://github.com/readthedocs/sphinx_rtd_theme/
34 + https://pypi.org/project/sphinx-rtd-theme/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
41 +IUSE=""
42 +
43 +RDEPEND="
44 + dev-python/docutils[${PYTHON_USEDEP}]
45 + >=dev-python/sphinx-1.6[${PYTHON_USEDEP}]
46 +"
47 +BDEPEND="
48 + test? (
49 + dev-python/readthedocs-sphinx-ext[${PYTHON_USEDEP}]
50 + )
51 +"
52 +
53 +distutils_enable_tests pytest
54 +
55 +src_prepare() {
56 + # unpin docutils
57 + sed -i -e '/docutils/s:<0.18::' setup.py || die
58 + distutils-r1_src_prepare
59 +
60 + # CI=1 disables rebuilding webpack that requires npm use
61 + # yes, that surely makes sense
62 + export CI=1
63 +}