cheetah3-3.4.0_beta6.ebuild - overlay - dark gentoo overlay
HTML git clone https://git.drkhsh.at/overlay.git
DIR Log
DIR Files
DIR Refs
DIR README
---
cheetah3-3.4.0_beta6.ebuild (964B)
---
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=8
5
6 DISTUTILS_EXT=1
7 DISTUTILS_USE_PEP517=setuptools
8 PYTHON_COMPAT=( python3_{10..13} )
9
10 inherit distutils-r1
11
12 MY_P=${P/_beta/b}
13 DESCRIPTION="Python-powered template engine and code generator"
14 HOMEPAGE="
15 https://cheetahtemplate.org/
16 https://github.com/CheetahTemplate3/Cheetah3/
17 https://pypi.org/project/Cheetah3/
18 "
19 SRC_URI="
20 https://github.com/CheetahTemplate3/Cheetah3/archive/${PV/_beta/b}.tar.gz
21 -> ${MY_P}.gh.tar.gz
22 "
23 S=${WORKDIR}/${MY_P}
24
25 LICENSE="MIT"
26 SLOT="0"
27 KEYWORDS="amd64 arm arm64 ~loong ~ppc64 ~riscv x86"
28
29 RDEPEND="
30 dev-python/markdown[${PYTHON_USEDEP}]
31 "
32 BDEPEND="
33 ${RDEPEND}
34 "
35
36 DOCS=( ANNOUNCE.rst README.rst )
37
38 python_test() {
39 # the package can't handle TMPDIR with hyphens
40 # https://github.com/CheetahTemplate3/cheetah3/issues/53
41 local -x TMPDIR=/tmp
42
43 "${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}"
44 }