1 |
commit: 513a3ec240d0f8ac74b597e974f8dd5775566623 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 15 23:00:34 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 15 23:00:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=513a3ec2 |
7 |
|
8 |
dev-python/jinja: Version bump to 2.10.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
dev-python/jinja/Manifest | 1 + |
14 |
dev-python/jinja/jinja-2.10.3.ebuild | 76 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 77 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/jinja/Manifest b/dev-python/jinja/Manifest |
18 |
index 50c6a9cbcc4..853323e2673 100644 |
19 |
--- a/dev-python/jinja/Manifest |
20 |
+++ b/dev-python/jinja/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST jinja-2.10.1.tar.gz 267828 BLAKE2B 0cd7e2880f1d41f3a6aafa0878343c2ff017099de6b2ad607baa3c9cba9d58c9241e1ba65cc23ea16244a1b3ea8720933f45f1061811e5f1abdcd881c4017bce SHA512 71c90be0b2aeefaa80279cba55f7827b5a42455f9dc55de9ca7e9e3e363678caa357426955267542f3c8a9b775e61aca55e439af192ed0a67f592be4ef91aff6 |
23 |
+DIST jinja-2.10.3.tar.gz 266316 BLAKE2B 0d8c10bb866eb887fd1c88ca5c5304f46d27930d8426587185ea72c0b79b512919bd5fa75987c26e433be049fd5764fb4ec08d42a4ec5ed00510fe8051e10f5e SHA512 566b781218b533c16b107b57e0252da5947fad262fd8d3fbb134b5916939c5e5d31c95e34bd6b14eec333d2ba3b4a6faa4168497a1ac774e7044f8220ac1b06e |
24 |
|
25 |
diff --git a/dev-python/jinja/jinja-2.10.3.ebuild b/dev-python/jinja/jinja-2.10.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..def83f0e623 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/jinja/jinja-2.10.3.ebuild |
30 |
@@ -0,0 +1,76 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A full-featured template engine for Python" |
42 |
+HOMEPAGE="http://jinja.pocoo.org/ https://pypi.org/project/Jinja2/" |
43 |
+ |
44 |
+# pypi tarball is missing tests |
45 |
+SRC_URI="https://github.com/pallets/jinja/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+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" |
50 |
+IUSE="doc examples test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
54 |
+ !dev-python/jinja:compat" |
55 |
+RDEPEND="${CDEPEND} |
56 |
+ dev-python/markupsafe[${PYTHON_USEDEP}]" |
57 |
+BDEPEND="${CDEPEND} |
58 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+# XXX: handle Babel better? |
63 |
+ |
64 |
+wrap_opts() { |
65 |
+ local mydistutilsargs=() |
66 |
+ |
67 |
+ if [[ ${EPYTHON} == python* ]]; then |
68 |
+ mydistutilargs+=( --with-debugsupport ) |
69 |
+ fi |
70 |
+ |
71 |
+ "${@}" |
72 |
+} |
73 |
+ |
74 |
+python_prepare() { |
75 |
+ # async is not supported on python2 |
76 |
+ if ! python_is_python3; then |
77 |
+ rm -f jinja2/async*.py || die "Failed to remove async from python2" |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+python_compile() { |
82 |
+ wrap_opts distutils-r1_python_compile |
83 |
+} |
84 |
+ |
85 |
+python_compile_all() { |
86 |
+ use doc && emake -C docs html |
87 |
+} |
88 |
+ |
89 |
+python_install_all() { |
90 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
91 |
+ if use examples ; then |
92 |
+ docinto examples |
93 |
+ dodoc -r examples/. |
94 |
+ fi |
95 |
+ |
96 |
+ distutils-r1_python_install_all |
97 |
+ |
98 |
+ insinto /usr/share/vim/vimfiles/syntax |
99 |
+ doins ext/Vim/* |
100 |
+} |
101 |
+ |
102 |
+pkg_postinst() { |
103 |
+ if ! has_version dev-python/Babel; then |
104 |
+ elog "For i18n support, please emerge dev-python/Babel." |
105 |
+ fi |
106 |
+} |