]> git.bzium.org/ - embe/overlay.git/blob - www-apps/bzium-lister/bzium-lister-0.2.0-r1.ebuild
dev-python/cloudflare: bump to 2.11.6
[embe/overlay.git] / www-apps / bzium-lister / bzium-lister-0.2.0-r1.ebuild
1 EAPI=7
2
3 PYTHON_COMPAT=( python3_{10,11} )
4 inherit distutils-r1
5
6 MY_PN="${PN/-/.}"
7 MY_P="${MY_PN}-${PV}"
8 S="${WORKDIR}/${MY_P}"
9
10 MY_PN_PATH="${PN/-//}"
11
12 DESCRIPTION="Directory lister"
13 HOMEPAGE="https://embe.bzium.org/lister/"
14 SRC_URI="https://embe.bzium.org/lister/${MY_P}.tar.gz"
15
16 LICENSE="MIT OFL-1.1"
17 SLOT="0"
18 KEYWORDS="~amd64"
19
20 RDEPEND="
21         dev-python/flask[${PYTHON_USEDEP}]
22         dev-python/toml[${PYTHON_USEDEP}]
23         dev-python/jinja[${PYTHON_USEDEP}]
24         dev-python/pyicu[${PYTHON_USEDEP}]
25         dev-python/werkzeug[${PYTHON_USEDEP}]
26         $(python_gen_cond_dep 'dev-python/backports-zoneinfo[${PYTHON_USEDEP}]' python3_8)
27 "
28
29 python_prepare_all()
30 {
31         distutils-r1_python_prepare_all
32
33         sed -i -r -e "s@'(static|templates)/\*'(, *)?@@g" setup.py || die
34 }
35
36 python_install()
37 {
38         distutils-r1_python_install
39
40         ln -s "${EPREFIX}/usr/share/${PN}/"{static,templates} "${ED}/$(python_get_sitedir)/${MY_PN_PATH}"/
41 }
42
43 python_install_all()
44 {
45         distutils-r1_python_install_all
46
47         insinto "${EPREFIX}/usr/share/${PN}"
48         doins -r "${MY_PN_PATH}"/{static,templates}
49 }