sys-apps/dool: sync live

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus
2024-09-27 14:51:59 +02:00
parent f630902ea7
commit d05ab15e3e

View File

@@ -3,9 +3,10 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..13} )
inherit python-r1
inherit distutils-r1
DESCRIPTION="Versatile replacement for vmstat, iostat and ifstat (clone of dstat)"
HOMEPAGE="https://github.com/scottchiefbaker/dool"
@@ -24,22 +25,27 @@ fi
LICENSE="GPL-2"
SLOT="0"
IUSE="doc examples"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
src_prepare() {
default
src_compile() {
:
}
# https://github.com/scottchiefbaker/dool/pull/80
mv dool dool.py || die
python_install() {
python_doscript "${PN}"
python_domodule plugins/${PN}_*.py
mkdir dool || die
mv plugins dool || die
mv dool.py dool || die
cat <<-EOF > dool/__init__.py || die
"""Versatile replacement for vmstat, iostat and ifstat (clone of dstat)"""
__version__ = "${PV}"
EOF
sed -i 's/dool:__main/dool.dool:__main/' pyproject.toml || die
}
src_install() {
python_foreach_impl python_install
distutils-r1_src_install
doman "docs/${PN}.1"