1 |
commit: cbd4bc2e9ebb89e6569a5285b0a10e605ab34774 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Sat Oct 31 00:25:40 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 01:36:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbd4bc2e |
7 |
|
8 |
dev-python/cheetah3-3.2.6: Version bump, add py39 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/cheetah3/Manifest | 1 + |
15 |
dev-python/cheetah3/cheetah3-3.2.6.ebuild | 41 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 42 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest |
19 |
index 8f709baf0bf..78ba6d24f98 100644 |
20 |
--- a/dev-python/cheetah3/Manifest |
21 |
+++ b/dev-python/cheetah3/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST cheetah3-3.2.4.tar.gz 315044 BLAKE2B 5cb36364f424acf87593b3f18b5709d1a161dd3fb9bc1f4cfb6fe7c22d2515c852d5d7d0215692274ffe5437267e3232fcfae3d76c592cf66d8927fabdf37953 SHA512 64fbe95fe8d5f3185168ba780e106a46caa0656272235168df603eff50dd6e476eed041658a1e11ae12ee10d148a001c32a23677a1ee6da5b6d43e20e4d1e36e |
24 |
+DIST cheetah3-3.2.6.tar.gz 2481158 BLAKE2B cb8ad192ae9caf0d1284294b323cf4a918cd2fc951bae25867d69a3dd7933728056b76fbf52a22d34f290056a96cce7d9ccbeb2404f2f0bb782f8db8b7453e47 SHA512 abf74def695018a79cb1364f60e402e7e0095a4d2f069decfbddf42501d865b70451ebc7b52abc67aa23e57276d7a3b8c2894a9571876e15db43cd1358f74d31 |
25 |
|
26 |
diff --git a/dev-python/cheetah3/cheetah3-3.2.6.ebuild b/dev-python/cheetah3/cheetah3-3.2.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..fecc1a523dd |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cheetah3/cheetah3-3.2.6.ebuild |
31 |
@@ -0,0 +1,41 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python3_{6..9} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=bdepend |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Python-powered template engine and code generator" |
41 |
+HOMEPAGE="http://www.cheetahtemplate.org/ https://pypi.org/project/Cheetah3/" |
42 |
+SRC_URI="https://github.com/CheetahTemplate3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
46 |
+SLOT="0" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/markdown[${PYTHON_USEDEP}] |
50 |
+ !dev-python/cheetah |
51 |
+" |
52 |
+BDEPEND="${RDEPEND}" |
53 |
+ |
54 |
+DOCS=( ANNOUNCE.rst README.rst TODO ) |
55 |
+ |
56 |
+python_prepare_all() { |
57 |
+ # Disable broken tests. |
58 |
+ sed \ |
59 |
+ -e "/Unicode/d" \ |
60 |
+ -e "s/if not sys.platform.startswith('java'):/if False:/" \ |
61 |
+ -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \ |
62 |
+ -i Cheetah/Tests/Test.py || die "sed failed" |
63 |
+ |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ cp -r "${S}/Cheetah/Tests/ImportHooksTemplates" \ |
69 |
+ "${BUILD_DIR}/lib/Cheetah/Tests/ImportHooksTemplates" || die |
70 |
+ |
71 |
+ "${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}" |
72 |
+} |