1 |
commit: da37eee1b26beac975a33a8d629d688cbb819bdf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 21 17:17:48 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 21 17:28:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da37eee1 |
7 |
|
8 |
dev-python/jinja: Bump to 2.11.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jinja/Manifest | 1 + |
13 |
dev-python/jinja/jinja-2.11.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jinja/Manifest b/dev-python/jinja/Manifest |
17 |
index 7e4a1154e45..1265b8630a0 100644 |
18 |
--- a/dev-python/jinja/Manifest |
19 |
+++ b/dev-python/jinja/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST jinja-2.10.1.tar.gz 267828 BLAKE2B 0cd7e2880f1d41f3a6aafa0878343c2ff017099de6b2ad607baa3c9cba9d58c9241e1ba65cc23ea16244a1b3ea8720933f45f1061811e5f1abdcd881c4017bce SHA512 71c90be0b2aeefaa80279cba55f7827b5a42455f9dc55de9ca7e9e3e363678caa357426955267542f3c8a9b775e61aca55e439af192ed0a67f592be4ef91aff6 |
22 |
DIST jinja-2.10.3.tar.gz 266316 BLAKE2B 0d8c10bb866eb887fd1c88ca5c5304f46d27930d8426587185ea72c0b79b512919bd5fa75987c26e433be049fd5764fb4ec08d42a4ec5ed00510fe8051e10f5e SHA512 566b781218b533c16b107b57e0252da5947fad262fd8d3fbb134b5916939c5e5d31c95e34bd6b14eec333d2ba3b4a6faa4168497a1ac774e7044f8220ac1b06e |
23 |
+DIST jinja-2.11.1.tar.gz 258637 BLAKE2B 80826397ada553b2bd1452f72430589ddebbd55aecffe6c6d9161ddcb46d9caa35635abd0946e063efda856391843831d25a7de91250d0f066b12cbf8b4af988 SHA512 66d9b7923f4b78133489bc28525d83032d37d5409ac572c00ea1aa342b3291bf0505c1e9d62f7a553553e26f06885e3d5c71bdcd2b334064b610692681694d33 |
24 |
DIST jinja-2.8.1.tar.gz 397144 BLAKE2B 78e4903da05ab3e8961b6bb6047116941b4bbf59d08b8283582972590409f98b5dc1f468a988525d96c552000279fcd0a31dae3ac1e5226f609a8854c8f9ca0b SHA512 f4655f1a43c06f7651fbd5251d0538788a3a6a3ffb93d9a8c239711cf043082c43d34706b6d71a18679d957faa6590e7e0259ffb8f7cc5e3300749526417a987 |
25 |
|
26 |
diff --git a/dev-python/jinja/jinja-2.11.1.ebuild b/dev-python/jinja/jinja-2.11.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5c684ec1237 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/jinja/jinja-2.11.1.ebuild |
31 |
@@ -0,0 +1,68 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="A full-featured template engine for Python" |
44 |
+HOMEPAGE="http://jinja.pocoo.org/ https://pypi.org/project/Jinja2/" |
45 |
+# pypi tarball is missing tests |
46 |
+SRC_URI="https://github.com/pallets/jinja/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" |
51 |
+IUSE="examples" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
55 |
+ !dev-python/jinja:compat" |
56 |
+ |
57 |
+distutils_enable_sphinx docs \ |
58 |
+ dev-python/sphinx-issues \ |
59 |
+ dev-python/pallets-sphinx-themes |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+# XXX: handle Babel better? |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # avoid unnecessary dep on extra sphinxcontrib modules |
66 |
+ sed -i '/sphinxcontrib.log_cabinet/ d' docs/conf.py || die |
67 |
+ |
68 |
+ distutils-r1_src_prepare |
69 |
+} |
70 |
+ |
71 |
+python_compile() { |
72 |
+ distutils-r1_python_compile |
73 |
+ |
74 |
+ if ! python_is_python3; then |
75 |
+ rm "${BUILD_DIR}"/lib/jinja2/async*.py || die |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+python_install() { |
80 |
+ distutils-r1_python_install --skip-build |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ if use examples ; then |
85 |
+ docinto examples |
86 |
+ dodoc -r examples/. |
87 |
+ fi |
88 |
+ |
89 |
+ distutils-r1_python_install_all |
90 |
+ |
91 |
+ insinto /usr/share/vim/vimfiles/syntax |
92 |
+ doins ext/Vim/* |
93 |
+} |
94 |
+ |
95 |
+pkg_postinst() { |
96 |
+ if ! has_version dev-python/Babel; then |
97 |
+ elog "For i18n support, please emerge dev-python/Babel." |
98 |
+ fi |
99 |
+} |