1 |
commit: c3e4051ca15d49df63e91185ce7a988ae28dd6fd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 18:34:31 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 18:48:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3e4051c |
7 |
|
8 |
dev-python/jinja: Bump to 3.1.2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jinja/Manifest | 1 + |
13 |
dev-python/jinja/jinja-3.1.2.ebuild | 59 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jinja/Manifest b/dev-python/jinja/Manifest |
17 |
index 592c3324db60..f97e2a8e295c 100644 |
18 |
--- a/dev-python/jinja/Manifest |
19 |
+++ b/dev-python/jinja/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST jinja-2.11.3.tar.gz 258057 BLAKE2B 4735464d044718ce1e6b2663ecb1b238b38fbf0f37ed683257775fe9e853186c089b98494209e511be5aa96bf6df8f6d472be132b6184a7d9213e182099c0433 SHA512 f8e2951edf780d7b44ac74d36579c89b0a5c076b4250faf643ae7e3ff6a431fedaabed640e5efb496cda1a79a4057bf312ae652484c8d4631d521689eb0adbc1 |
22 |
DIST jinja-3.1.1.tar.gz 272001 BLAKE2B 4787ee89d7e10cea24d3bf2810e391d5c17c00ffee8fd2f9244a9e24b219bc126e4111cc6b788107cbc07dd96732a2d1fc51dd87506545dc8beb7fdce5cd89b1 SHA512 285b3a2e09fbf891ce1d18e2692e400a9fe9d8968a36be50229972d9bdbb590bbea099cd26443de0fbe5ed7a2c6419eb211bfdac15c27a61b8db903e88855478 |
23 |
+DIST jinja-3.1.2.gh.tar.gz 272546 BLAKE2B dc4bc81900c07e7816ff63259073409650f1f679e00d76b9574aaba301b36a7037aaf77a87cc1c160ea2aa2272ceb67e2fd20fbd74bb9850880fb909babded8e SHA512 50feebc7eed4c8b5bb0c2951784c1c115e3ee1c0e0c91bbf1884551b1312ef8fce24804a2ca1dfd8c543406529afe4817567c39e7cfd15028b54049853623144 |
24 |
|
25 |
diff --git a/dev-python/jinja/jinja-3.1.2.ebuild b/dev-python/jinja/jinja-3.1.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..d405dcf57e7d |
28 |
--- /dev/null |
29 |
+++ b/dev-python/jinja/jinja-3.1.2.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="A full-featured template engine for Python" |
43 |
+HOMEPAGE=" |
44 |
+ https://palletsprojects.com/p/jinja/ |
45 |
+ https://github.com/pallets/jinja/ |
46 |
+ https://pypi.org/project/Jinja2/ |
47 |
+" |
48 |
+SRC_URI=" |
49 |
+ https://github.com/pallets/jinja/archive/${PV}.tar.gz |
50 |
+ -> ${P}.gh.tar.gz |
51 |
+" |
52 |
+ |
53 |
+LICENSE="BSD" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" |
56 |
+IUSE="examples" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ >=dev-python/markupsafe-2.0.0[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_sphinx docs \ |
63 |
+ dev-python/sphinx-issues \ |
64 |
+ dev-python/pallets-sphinx-themes |
65 |
+distutils_enable_tests pytest |
66 |
+ |
67 |
+# XXX: handle Babel better? |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # avoid unnecessary dep on extra sphinxcontrib modules |
71 |
+ sed -i '/sphinxcontrib.log_cabinet/ d' docs/conf.py || die |
72 |
+ |
73 |
+ distutils-r1_src_prepare |
74 |
+} |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ if use examples ; then |
78 |
+ docinto examples |
79 |
+ dodoc -r examples/. |
80 |
+ fi |
81 |
+ |
82 |
+ distutils-r1_python_install_all |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ if ! has_version dev-python/Babel; then |
87 |
+ elog "For i18n support, please emerge dev-python/Babel." |
88 |
+ fi |
89 |
+} |