-EAPI=7
-
-PYTHON_COMPAT=( python3_{8,9} )
-inherit distutils-r1
-
-MY_PN="${PN/-/.}"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-MY_PN_PATH="${PN/-//}"
-
-DESCRIPTION="Directory lister"
-HOMEPAGE="https://embe.bzium.org/lister/"
-SRC_URI="https://embe.bzium.org/lister/${MY_P}.tar.gz"
-
-LICENSE="MIT OFL-1.1"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- dev-python/flask[${PYTHON_USEDEP}]
- dev-python/toml[${PYTHON_USEDEP}]
- dev-python/jinja[${PYTHON_USEDEP}]
- dev-python/pyicu[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/backports-zoneinfo[${PYTHON_USEDEP}]' python3_8)
-"
-
-python_prepare_all()
-{
- distutils-r1_python_prepare_all
-
- sed -i -r -e "s@'(static|templates)/\*'(, *)?@@g" setup.py || die
-}
-
-python_install()
-{
- distutils-r1_python_install
-
- ln -s "${EPREFIX}/usr/share/${PN}/"{static,templates} "${ED}/$(python_get_sitedir)/${MY_PN_PATH}"/
-}
-
-python_install_all()
-{
- distutils-r1_python_install_all
-
- insinto "${EPREFIX}/usr/share/${PN}"
- doins -r "${MY_PN_PATH}"/{static,templates}
-}