1 |
commit: 681b0145a1c11c48f84076cb32baa1c8a3a8109c |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Apr 29 04:05:05 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 04:11:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=681b0145 |
7 |
|
8 |
dev-python/cheetah3-3.2.4: Version bump |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/cheetah3/Manifest | 1 + |
15 |
dev-python/cheetah3/cheetah3-3.2.4.ebuild | 45 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 46 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest |
19 |
index 7aca2361cfc..fd407552147 100644 |
20 |
--- a/dev-python/cheetah3/Manifest |
21 |
+++ b/dev-python/cheetah3/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST Cheetah3-3.2.3.tar.gz 875441 BLAKE2B 0fa4a533bd66f98e982312a451f464a2c3fb645916b98aaa92d3af219cb49e252985b4c675a612c1c9265f8028577be4be78b551ad4cdbbaca7f4439624193b9 SHA512 ebc735b59d61912679405469f9d509fc73bbdde51c414320994421849f4a02266d2c286c0f618cab2a592ab47ac0a4be9ec444fab75145a0c31dd0c3c39fc1e3 |
24 |
+DIST cheetah3-3.2.4.tar.gz 315044 BLAKE2B 5cb36364f424acf87593b3f18b5709d1a161dd3fb9bc1f4cfb6fe7c22d2515c852d5d7d0215692274ffe5437267e3232fcfae3d76c592cf66d8927fabdf37953 SHA512 64fbe95fe8d5f3185168ba780e106a46caa0656272235168df603eff50dd6e476eed041658a1e11ae12ee10d148a001c32a23677a1ee6da5b6d43e20e4d1e36e |
25 |
|
26 |
diff --git a/dev-python/cheetah3/cheetah3-3.2.4.ebuild b/dev-python/cheetah3/cheetah3-3.2.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6e9a3455e1f |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cheetah3/cheetah3-3.2.4.ebuild |
31 |
@@ -0,0 +1,45 @@ |
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,7,8} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=no |
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 |
+IUSE="" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+SLOT="0" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/markdown[${PYTHON_USEDEP}] |
51 |
+ !dev-python/cheetah |
52 |
+" |
53 |
+BDEPEND="${RDEPEND}" |
54 |
+ |
55 |
+DOCS=( ANNOUNCE.rst README.rst TODO ) |
56 |
+ |
57 |
+# Race in the test suite |
58 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
59 |
+ |
60 |
+python_prepare_all() { |
61 |
+ # Disable broken tests. |
62 |
+ sed \ |
63 |
+ -e "/Unicode/d" \ |
64 |
+ -e "s/if not sys.platform.startswith('java'):/if False:/" \ |
65 |
+ -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \ |
66 |
+ -i Cheetah/Tests/Test.py || die "sed failed" |
67 |
+ |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ cp -r "${S}/Cheetah/Tests/ImportHooksTemplates" \ |
73 |
+ "${BUILD_DIR}/lib/Cheetah/Tests/ImportHooksTemplates" || die |
74 |
+ |
75 |
+ "${PYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}" |
76 |
+} |