From d05ab15e3ebd9cffe8e3097771e2aca9bdde358a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 27 Sep 2024 14:51:59 +0200 Subject: [PATCH] sys-apps/dool: sync live Signed-off-by: Florian Schmaus --- sys-apps/dool/dool-9999.ebuild | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/sys-apps/dool/dool-9999.ebuild b/sys-apps/dool/dool-9999.ebuild index 9159ce65de..db89ec526c 100644 --- a/sys-apps/dool/dool-9999.ebuild +++ b/sys-apps/dool/dool-9999.ebuild @@ -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"