1 |
commit: 679d806c3cf343e60699eb5f44eaa288b25adea2 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 3 07:55:16 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 3 08:16:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=679d806c |
7 |
|
8 |
dev-python/sphinx-jinja: add 1.1.0, enable py3.10, EAPI=8 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/sphinx-jinja/Manifest | 1 + |
13 |
dev-python/sphinx-jinja/sphinx-jinja-1.1.0.ebuild | 37 +++++++++++++++++++++++ |
14 |
2 files changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinx-jinja/Manifest b/dev-python/sphinx-jinja/Manifest |
17 |
index 305af2c777e..97f68f2876c 100644 |
18 |
--- a/dev-python/sphinx-jinja/Manifest |
19 |
+++ b/dev-python/sphinx-jinja/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST sphinx-jinja-0.3.0.tar.gz 7035 BLAKE2B a43c2ab6c1f0178987ccf9f69acbf0b50974573b83d0503e7888a56bf024e519ad69e3ac6ec9b8d27d7e01e9482008b6579c6892ce114124c0ef12ef456c887c SHA512 b39211a0013db020112c865335811317699e7ade734bfd9bb24f51934df4652f0560b81f5e253fc663fbd8a269fd962ef2bfd6dc96eab12a397a538e758cddfd |
22 |
+DIST sphinx-jinja-1.1.0.tar.gz 7306 BLAKE2B 17b8df65f32e0b39eeed406b9bd71974a2b4399154b6d3bf13d9011c0d415b856345ec2fffff8fed39f893b7adb5fa1c012ebf80319ac6af74739e7fe9372229 SHA512 acbe1c2f2044b8e202db60a9964c509a33206c113ca2833dc43bb4849bc91e26b0c84959d8c8f2e5331c33c2e9de73c0348a3841740a5b7d260a43bf4876949f |
23 |
|
24 |
diff --git a/dev-python/sphinx-jinja/sphinx-jinja-1.1.0.ebuild b/dev-python/sphinx-jinja/sphinx-jinja-1.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..49aca906f00 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/sphinx-jinja/sphinx-jinja-1.1.0.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A sphinx extension to include jinja based templates into a sphinx doc" |
39 |
+HOMEPAGE="https://github.com/tardyp/sphinx-jinja https://pypi.org/project/sphinx-jinja/" |
40 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+ |
46 |
+RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]" |
47 |
+ |
48 |
+BDEPEND=" |
49 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
50 |
+ test? ( |
51 |
+ dev-python/sphinx-testing[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+distutils_enable_tests nose |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ sed -e "s/import urllib/import urllib.request as urllib/" \ |
59 |
+ -i sphinxcontrib/jinja.py || die |
60 |
+ distutils-r1_src_prepare |
61 |
+} |
62 |
+ |
63 |
+python_install_all() { |
64 |
+ distutils-r1_python_install_all |
65 |
+ find "${D}" -name '*.pth' -delete || die |
66 |
+} |