1 |
commit: 4fcf2dc2b4dd908faa969e0cd3aa8aeddd47dcb8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 1 13:40:44 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 1 13:40:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fcf2dc2 |
7 |
|
8 |
dev-python/cheetah3: Bump to 3.2.6_p2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cheetah3/Manifest | 1 + |
13 |
dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild | 41 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest |
17 |
index d2a51d68201b..285b32d7ef70 100644 |
18 |
--- a/dev-python/cheetah3/Manifest |
19 |
+++ b/dev-python/cheetah3/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST cheetah3-3.2.6.post2.tar.gz 316291 BLAKE2B d5dfaa958bc0cc41097d4a75abfe092d51379efd644daa01caac6ba1b789c21334a662904166b6069a0204e302c1d9e7bea74aa9f11082b9c8fce1c1c509f888 SHA512 b10d2569ce92181029b8f95d23602ec7b002400c8fdf4f6bb095ff40201154b97418fec19c9920f2f212f545633571aa32dc50a16a9ba81a9427303ca7938f29 |
22 |
DIST cheetah3-3.2.6.tar.gz 2481158 BLAKE2B cb8ad192ae9caf0d1284294b323cf4a918cd2fc951bae25867d69a3dd7933728056b76fbf52a22d34f290056a96cce7d9ccbeb2404f2f0bb782f8db8b7453e47 SHA512 abf74def695018a79cb1364f60e402e7e0095a4d2f069decfbddf42501d865b70451ebc7b52abc67aa23e57276d7a3b8c2894a9571876e15db43cd1358f74d31 |
23 |
|
24 |
diff --git a/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild b/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a4c89574fcc1 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild |
29 |
@@ -0,0 +1,41 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+MY_P=${P/_p/.post} |
41 |
+DESCRIPTION="Python-powered template engine and code generator" |
42 |
+HOMEPAGE="https://cheetahtemplate.org/ https://pypi.org/project/Cheetah3/" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/CheetahTemplate3/${PN}/archive/${PV/_p/.post}.tar.gz |
45 |
+ -> ${MY_P}.tar.gz |
46 |
+" |
47 |
+S=${WORKDIR}/${MY_P} |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
51 |
+SLOT="0" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/markdown[${PYTHON_USEDEP}] |
55 |
+ !dev-python/cheetah |
56 |
+" |
57 |
+BDEPEND="${RDEPEND}" |
58 |
+ |
59 |
+DOCS=( ANNOUNCE.rst README.rst TODO ) |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # Disable broken tests. |
63 |
+ sed -i -e "/Unicode/d" -i Cheetah/Tests/Test.py || die |
64 |
+ |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ "${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}" |
70 |
+} |