diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2020-10-30 17:25:40 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-10-30 18:36:43 -0700 |
commit | cbd4bc2e9ebb89e6569a5285b0a10e605ab34774 (patch) | |
tree | c63ddd69a209d9de191cb32c5c8b967ca62f035f | |
parent | dev-python/pytest-salt-factories-0.94.4: bump, add py39 (diff) | |
download | gentoo-cbd4bc2e.tar.gz gentoo-cbd4bc2e.tar.bz2 gentoo-cbd4bc2e.zip |
dev-python/cheetah3-3.2.6: Version bump, add py39
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | dev-python/cheetah3/Manifest | 1 | ||||
-rw-r--r-- | dev-python/cheetah3/cheetah3-3.2.6.ebuild | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest index 8f709baf0bfc..78ba6d24f981 100644 --- a/dev-python/cheetah3/Manifest +++ b/dev-python/cheetah3/Manifest @@ -1 +1,2 @@ DIST cheetah3-3.2.4.tar.gz 315044 BLAKE2B 5cb36364f424acf87593b3f18b5709d1a161dd3fb9bc1f4cfb6fe7c22d2515c852d5d7d0215692274ffe5437267e3232fcfae3d76c592cf66d8927fabdf37953 SHA512 64fbe95fe8d5f3185168ba780e106a46caa0656272235168df603eff50dd6e476eed041658a1e11ae12ee10d148a001c32a23677a1ee6da5b6d43e20e4d1e36e +DIST cheetah3-3.2.6.tar.gz 2481158 BLAKE2B cb8ad192ae9caf0d1284294b323cf4a918cd2fc951bae25867d69a3dd7933728056b76fbf52a22d34f290056a96cce7d9ccbeb2404f2f0bb782f8db8b7453e47 SHA512 abf74def695018a79cb1364f60e402e7e0095a4d2f069decfbddf42501d865b70451ebc7b52abc67aa23e57276d7a3b8c2894a9571876e15db43cd1358f74d31 diff --git a/dev-python/cheetah3/cheetah3-3.2.6.ebuild b/dev-python/cheetah3/cheetah3-3.2.6.ebuild new file mode 100644 index 000000000000..fecc1a523ddf --- /dev/null +++ b/dev-python/cheetah3/cheetah3-3.2.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +DESCRIPTION="Python-powered template engine and code generator" +HOMEPAGE="http://www.cheetahtemplate.org/ https://pypi.org/project/Cheetah3/" +SRC_URI="https://github.com/CheetahTemplate3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm64 ~x86" +SLOT="0" + +RDEPEND=" + dev-python/markdown[${PYTHON_USEDEP}] + !dev-python/cheetah +" +BDEPEND="${RDEPEND}" + +DOCS=( ANNOUNCE.rst README.rst TODO ) + +python_prepare_all() { + # Disable broken tests. + sed \ + -e "/Unicode/d" \ + -e "s/if not sys.platform.startswith('java'):/if False:/" \ + -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \ + -i Cheetah/Tests/Test.py || die "sed failed" + + distutils-r1_python_prepare_all +} + +python_test() { + cp -r "${S}/Cheetah/Tests/ImportHooksTemplates" \ + "${BUILD_DIR}/lib/Cheetah/Tests/ImportHooksTemplates" || die + + "${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}" +} |