blob: 513939bb7171dfac037c5cf19ff25b1e27531014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Pug (Jade) syntax adapter for Django, Jinja2 and Mako templates"
HOMEPAGE="https://github.com/kakulukia/pypugjs"
SRC_URI="
https://github.com/kakulukia/pypugjs/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
SRC_URI+=" https://dev.gentoo.org/~dolsen/distfiles/${P}-nose.patch.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~riscv"
RDEPEND="
>=dev-python/six-1.15.0[${PYTHON_USEDEP}]
>=dev-python/chardet-4.0.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/django[${PYTHON_USEDEP}]
>=dev-python/jinja-3.1.1[${PYTHON_USEDEP}]
>=dev-python/mako-1.1.3[${PYTHON_USEDEP}]
>=dev-python/tornado-6.0.4[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${WORKDIR}/pypugjs-5.9.12-nose.patch"
)
distutils_enable_tests pytest
src_prepare() {
# Remove pyramid backend as pyramid isn't packaged
rm -r pypugjs/ext/pyramid || die
distutils-r1_src_prepare
}
pkg_postinst() {
optfeature "converting to Django output" dev-python/django
optfeature "converting to Jinja2 output" dev-python/jinja
optfeature "converting to Mako output" dev-python/mako
optfeature "converting to Tornado output" dev-python/tornado
}
|