Gentoo Archives: gentoo-commits

From: Dirkjan Ochtman <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jinja/
Date: Thu, 29 Dec 2016 20:26:55
Message-Id: 1483043197.0b9c90534e61d0ea763ab20d69f7af76548dbe09.djc@gentoo
1 commit: 0b9c90534e61d0ea763ab20d69f7af76548dbe09
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 20:15:57 2016 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 20:26:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9c9053
7
8 dev-python/jinja: version bump to 2.8.1
9
10 Package-Manager: Portage-2.3.0, Repoman-2.3.1
11
12 dev-python/jinja/Manifest | 1 +
13 dev-python/jinja/jinja-2.8.1.ebuild | 74 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/jinja/Manifest b/dev-python/jinja/Manifest
17 index e016784..ba01da4 100644
18 --- a/dev-python/jinja/Manifest
19 +++ b/dev-python/jinja/Manifest
20 @@ -1,2 +1,3 @@
21 DIST Jinja2-2.7.3.tar.gz 378470 SHA256 2e24ac5d004db5714976a04ac0e80c6df6e47e98c354cb2c0d82f8879d4f8fdb SHA512 2810db2b52fe800e2a4a47ea41a07f997b1647a2b7ad05fe564f9d554d6a402283c84c4e2491e5dad8d22acd83d3ca420f0983ed2effc732f6d79600a846071b WHIRLPOOL ece9b68dff414739103eac202b5903d96802939f5742a2bf3ff421d87ef49043ed9a4b2a3a6bf0c2f3d9be0d8295b73c47b253553731b44912cb58add8f233c0
22 +DIST Jinja2-2.8.1.tar.gz 358129 SHA256 35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891 SHA512 0a2e2aa94f5c2f04f79d59d34d5324d2a440385b71192e85e960c761b4a073400e4ab0458e57305650f696a474593d6fbf398fb1d9518be261bb2a5cb866e163 WHIRLPOOL 380636268f903d05afda9c41296986d1c83949dead6c78d3e3cb880137a6c6ec06f0e2297169fc0ea8fd1348c9928f5841d37f951dd941fe89a8ccc96080e191
23 DIST Jinja2-2.8.tar.gz 357055 SHA256 bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4 SHA512 2e80d6d9ad10dafcce1e6dd24493f5dffc43a17f71a30a650415638e12d3a3891738ebacc569701129214026d062d91a2b10e4f7a2c7b85d801dde26ded1bebb WHIRLPOOL 31adc38738848aa224cceb0d0afb2b85eb080d166ed84f145eb0576eeedfb91cf8d99d7c98b6a6cc6ab4fedf33fdbe3171c80fd559df48036a7441232702e749
24
25 diff --git a/dev-python/jinja/jinja-2.8.1.ebuild b/dev-python/jinja/jinja-2.8.1.ebuild
26 new file mode 100644
27 index 00000000..6678878
28 --- /dev/null
29 +++ b/dev-python/jinja/jinja-2.8.1.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit eutils distutils-r1
41 +
42 +MY_PN=Jinja2
43 +MY_P=${MY_PN}-${PV}
44 +
45 +DESCRIPTION="A full-featured template engine for Python"
46 +HOMEPAGE="http://jinja.pocoo.org/ https://pypi.python.org/pypi/Jinja2"
47 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
52 +IUSE="doc examples"
53 +
54 +RDEPEND="
55 + dev-python/markupsafe[${PYTHON_USEDEP}]
56 + dev-python/setuptools[${PYTHON_USEDEP}]
57 + !dev-python/jinja:compat"
58 +DEPEND="${RDEPEND}
59 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
60 +
61 +# XXX: handle Babel better?
62 +
63 +S=${WORKDIR}/${MY_P}
64 +
65 +wrap_opts() {
66 + local mydistutilsargs=()
67 +
68 + if [[ ${EPYTHON} == python* ]]; then
69 + mydistutilargs+=( --with-debugsupport )
70 + fi
71 +
72 + "${@}"
73 +}
74 +
75 +python_compile() {
76 + wrap_opts distutils-r1_python_compile
77 + if [[ ${EPYTHON} == python3.2 ]]; then
78 + 2to3 --no-diffs -n -w -f unicode "${BUILD_DIR}/lib" || die
79 + fi
80 +}
81 +
82 +python_compile_all() {
83 + use doc && emake -C docs html
84 +}
85 +
86 +python_test() {
87 + esetup.py test
88 +}
89 +
90 +python_install_all() {
91 + use doc && local HTML_DOCS=( docs/_build/html/. )
92 + use examples && local EXAMPLES=( examples/. )
93 +
94 + distutils-r1_python_install_all
95 +
96 + insinto /usr/share/vim/vimfiles/syntax
97 + doins ext/Vim/*
98 +}
99 +
100 +pkg_postinst() {
101 + if ! has_version dev-python/Babel; then
102 + elog "For i18n support, please emerge dev-python/Babel."
103 + fi
104 +}