1 |
commit: 463f43f31b8622aeda1c2eb5b37639ef5bd6229d |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 22 13:32:42 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 22 18:58:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=463f43f3 |
7 |
|
8 |
dev-python/cheetah3: new ebuild needed by >=mongodb-4.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
dev-python/cheetah3/Manifest | 1 + |
14 |
dev-python/cheetah3/cheetah3-3.2.3.ebuild | 44 +++++++++++++++++++++++++++++++ |
15 |
dev-python/cheetah3/metadata.xml | 15 +++++++++++ |
16 |
3 files changed, 60 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..7aca2361cfc |
21 |
--- /dev/null |
22 |
+++ b/dev-python/cheetah3/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST Cheetah3-3.2.3.tar.gz 875441 BLAKE2B 0fa4a533bd66f98e982312a451f464a2c3fb645916b98aaa92d3af219cb49e252985b4c675a612c1c9265f8028577be4be78b551ad4cdbbaca7f4439624193b9 SHA512 ebc735b59d61912679405469f9d509fc73bbdde51c414320994421849f4a02266d2c286c0f618cab2a592ab47ac0a4be9ec444fab75145a0c31dd0c3c39fc1e3 |
25 |
|
26 |
diff --git a/dev-python/cheetah3/cheetah3-3.2.3.ebuild b/dev-python/cheetah3/cheetah3-3.2.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..57e7486829a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cheetah3/cheetah3-3.2.3.ebuild |
31 |
@@ -0,0 +1,44 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+MY_PN="Cheetah3" |
41 |
+MY_P="${MY_PN}-${PV/_}" |
42 |
+ |
43 |
+DESCRIPTION="Python-powered template engine and code generator" |
44 |
+HOMEPAGE="http://www.cheetahtemplate.org/ https://pypi.org/project/Cheetah3/" |
45 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+IUSE="" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+SLOT="0" |
51 |
+ |
52 |
+RDEPEND="dev-python/markdown[${PYTHON_USEDEP}]" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+S="${WORKDIR}/${MY_P}" |
57 |
+ |
58 |
+DOCS=( ANNOUNCE.rst README.rst TODO ) |
59 |
+# Race in the test suite |
60 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ # Disable broken tests. |
64 |
+ sed \ |
65 |
+ -e "/Unicode/d" \ |
66 |
+ -e "s/if not sys.platform.startswith('java'):/if False:/" \ |
67 |
+ -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \ |
68 |
+ -i Cheetah/Tests/Test.py || die "sed failed" |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ "${PYTHON}" Cheetah/Tests/Test.py || die "Testing failed with ${EPYTHON}" |
75 |
+} |
76 |
|
77 |
diff --git a/dev-python/cheetah3/metadata.xml b/dev-python/cheetah3/metadata.xml |
78 |
new file mode 100644 |
79 |
index 00000000000..52f8ccc1f81 |
80 |
--- /dev/null |
81 |
+++ b/dev-python/cheetah3/metadata.xml |
82 |
@@ -0,0 +1,15 @@ |
83 |
+<?xml version="1.0" encoding="UTF-8"?> |
84 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
85 |
+<pkgmetadata> |
86 |
+ <maintainer type="project"> |
87 |
+ <email>python@g.o</email> |
88 |
+ <name>Python</name> |
89 |
+ </maintainer> |
90 |
+ <longdescription>Cheetah is a Python-powered template engine and code generator. It can be used |
91 |
+as a standalone utility or it can be combined with other tools. Web developers |
92 |
+are its principle user group, but it has many potential uses and is also being |
93 |
+used to generate C++ game code, Java, SQL, form emails, and even Python code.</longdescription> |
94 |
+ <upstream> |
95 |
+ <remote-id type="pypi">Cheetah3</remote-id> |
96 |
+ </upstream> |
97 |
+</pkgmetadata> |