commit:     3beeddd119f04842cd3c1e8d2baa0ac6dc0443ce
Author:     Joe Kappus <joe <AT> wt <DOT> gd>
AuthorDate: Wed Dec 10 07:16:52 2025 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Wed Dec 10 07:16:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3beeddd1

app-admin/s-tui: 1.2.0, revbump, runtime fix

Comment out the failing import, it's not used anyway.

Bug: https://github.com/amanusk/s-tui/issues/246
Signed-off-by: Joe Kappus <joe <AT> wt.gd>

 app-admin/s-tui/files/s-tui-1.2.0-dropimport.patch | 13 ++++++++
 app-admin/s-tui/s-tui-1.2.0-r1.ebuild              | 36 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/app-admin/s-tui/files/s-tui-1.2.0-dropimport.patch 
b/app-admin/s-tui/files/s-tui-1.2.0-dropimport.patch
new file mode 100644
index 0000000000..cc59f034f8
--- /dev/null
+++ b/app-admin/s-tui/files/s-tui-1.2.0-dropimport.patch
@@ -0,0 +1,13 @@
+diff --git a/s_tui/s_tui.py b/s_tui/s_tui.py
+index e39e6d9..c104e8f 100755
+--- a/s_tui/s_tui.py
++++ b/s_tui/s_tui.py
+@@ -36,7 +36,7 @@ import sys
+ 
+ import psutil
+ import urwid
+-import urwid.curses_display
++#import urwid.curses_display
+ 
+ try:
+     import configparser

diff --git a/app-admin/s-tui/s-tui-1.2.0-r1.ebuild 
b/app-admin/s-tui/s-tui-1.2.0-r1.ebuild
new file mode 100644
index 0000000000..4c9bc3eaa3
--- /dev/null
+++ b/app-admin/s-tui/s-tui-1.2.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Stress-Terminal UI monitoring tool"
+HOMEPAGE="https://amanusk.github.io/s-tui/";
+
+PATCHES=( "${FILESDIR}/${P}-dropimport.patch" )
+
+if [[ ${PV} == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/amanusk/${PN}.git";
+       EGIT_SUBMODULES=()
+else
+       SRC_URI="https://github.com/amanusk/${PN}/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="
+       >=dev-python/psutil-7.0.0[${PYTHON_USEDEP}]
+       >=dev-python/urwid-3.0.2[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests unittest
+
+pkg_postinst() {
+       optfeature "Stress options in program menu" app-benchmarks/stress 
app-benchmarks/stress-ng
+}

Reply via email to