]> git.bzium.org/ - embe/overlay.git/blob - www-apps/bzium-lister/bzium-lister-0.1.0.ebuild
dev-python/cloudflare: bump to 2.8.13
[embe/overlay.git] / www-apps / bzium-lister / bzium-lister-0.1.0.ebuild
1 EAPI=7
2
3 PYTHON_COMPAT=( python3_{8,9} )
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         $(python_gen_cond_dep 'dev-python/backports-zoneinfo[${PYTHON_USEDEP}]' python3_8)
26 "
27
28 python_prepare_all()
29 {
30         distutils-r1_python_prepare_all
31
32         sed -i -r -e "s@'(static|templates)/\*'(, *)?@@g" setup.py || die
33 }
34
35 python_install()
36 {
37         distutils-r1_python_install
38
39         ln -s "${EPREFIX}/usr/share/${PN}/"{static,templates} "${ED}/$(python_get_sitedir)/${MY_PN_PATH}"/
40 }
41
42 python_install_all()
43 {
44         distutils-r1_python_install_all
45
46         insinto "${EPREFIX}/usr/share/${PN}"
47         doins -r "${MY_PN_PATH}"/{static,templates}
48 }