commit: d05ab15e3ebd9cffe8e3097771e2aca9bdde358a
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 27 12:51:59 2024 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Sep 27 12:52:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d05ab15e
sys-apps/dool: sync live
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
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 9159ce65d..db89ec526 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
+
+ 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
-python_install() {
- python_doscript "${PN}"
- python_domodule plugins/${PN}_*.py
+ 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"