Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypugjs/
Date: Fri, 03 Sep 2021 08:17:33
Message-Id: 1630656992.c7f757049180f4206cc923eb9d8525074bce6436.arthurzam@gentoo
1 commit: c7f757049180f4206cc923eb9d8525074bce6436
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 3 08:14:22 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 3 08:16:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f75704
7
8 dev-python/pypugjs: enable py3.10, enable tests, deps cleanup
9
10 Closes: https://bugs.gentoo.org/798387
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/pypugjs/pypugjs-5.9.9.ebuild | 34 ++++++++++++++++++++++++++-------
14 1 file changed, 27 insertions(+), 7 deletions(-)
15
16 diff --git a/dev-python/pypugjs/pypugjs-5.9.9.ebuild b/dev-python/pypugjs/pypugjs-5.9.9.ebuild
17 index f5142600ec4..c8ca907dcf5 100644
18 --- a/dev-python/pypugjs/pypugjs-5.9.9.ebuild
19 +++ b/dev-python/pypugjs/pypugjs-5.9.9.ebuild
20 @@ -1,11 +1,10 @@
21 # Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=7
25 -PYTHON_COMPAT=( python3_{7,8,9} )
26 -DISTUTILS_USE_SETUPTOOLS="rdepend"
27 +EAPI=8
28
29 -inherit distutils-r1
30 +PYTHON_COMPAT=( python3_{8..10} )
31 +inherit distutils-r1 optfeature
32
33 DESCRIPTION="Pug (Jade) syntax adapter for Django, Jinja2 and Mako templates"
34 HOMEPAGE="https://github.com/kakulukia/pypugjs"
35 @@ -15,9 +14,30 @@ LICENSE="MIT"
36 SLOT="0"
37 KEYWORDS="~amd64 ~arm64"
38
39 -IUSE=""
40 RDEPEND="
41 dev-python/six[${PYTHON_USEDEP}]
42 - dev-python/chardet
43 + dev-python/chardet[${PYTHON_USEDEP}]
44 "
45 -DEPEND="${RDEPEND}"
46 +BDEPEND="
47 + test? (
48 + dev-python/django[${PYTHON_USEDEP}]
49 + dev-python/jinja[${PYTHON_USEDEP}]
50 + dev-python/mako[${PYTHON_USEDEP}]
51 + www-servers/tornado[${PYTHON_USEDEP}]
52 + )
53 +"
54 +
55 +distutils_enable_tests nose
56 +
57 +src_prepare() {
58 + # Remove pyramid backend as pyramid isn't packaged
59 + rm -r pypugjs/ext/pyramid || die
60 + distutils-r1_src_prepare
61 +}
62 +
63 +pkg_postinst() {
64 + optfeature "converting to Django output" dev-python/django
65 + optfeature "converting to Jinja2 output" dev-python/jinja
66 + optfeature "converting to Mako output" dev-python/mako
67 + optfeature "converting to Tornado output" www-servers/tornado
68 +}