sys-process/glances: add 4.3.1

Simplify the update check disablement patch and move documentation
directory move in src_install, removing the need for that patch.

Signed-off-by: John Helmert III <ajak@gentoo.org>
This commit is contained in:
John Helmert III
2025-04-13 19:07:26 -07:00
parent da5aea5cb6
commit cab77b6b8b
3 changed files with 89 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST glances-4.0.6.gh.tar.gz 6622650 BLAKE2B 82290999d94ea46bb5671a6eb2959cbb4246dd231fddbb6ad72108d7270faf5a3da5f73f25d1bdb8987a6db79d7a07eb05581fa7b4d7406df97cffb274e20387 SHA512 d5bb804aff6dbc5147a185cb613ca9f402b43fc2d9bef1e80dfd90db3fe11f445aade0d73e987a9a3665c4bf4f210dd3d1a98e9b53e028ef4e49a9111b527f0d
DIST glances-4.1.2.1.gh.tar.gz 6579592 BLAKE2B 2c22bd5bc4c1a162b92dcb016363dcf789c13b0fbeaab091f0f84d5538885b7c7e20347620491cc248242e25f81806119d82395ee72623ca2a80ffab78cddf56 SHA512 a440e6fb39c6aac3fa846e49268170e2a7c1a331a7b319dbe9d5cadf8aa9975146a5fae7d99abc085a9f9aadc739281073f5a99f95f456132a2e78b14898f340
DIST glances-4.3.1.gh.tar.gz 7041565 BLAKE2B 1aa115c7fe0c651ed8bd7b2a3b46bd7434494701508e01089815bb1a06e6e8de5e9250eab2693e4a2bc2771ddba8911bb5e572e8e3be0abba3816cee3070908d SHA512 5721f1f02a8fe0946d3c87210464337b1565884377e7dfffb0f208407a4ec4dc1bf16d4acf2139bfb4a09f195591f908e4c72368f76646d8ab7dcaed7a457e31

View File

@@ -0,0 +1,20 @@
From 345789c365404f41d2743df43b4c1debd424f460 Mon Sep 17 00:00:00 2001
From: John Helmert III <ajak@gentoo.org>
Date: Sun, 13 Apr 2025 12:37:06 -0700
Subject: [PATCH] disable update check
Signed-off-by: John Helmert III <ajak@gentoo.org>
--- a/glances/main.py
+++ b/glances/main.py
@@ -606,7 +606,7 @@ Examples of use:
parser.add_argument(
'--disable-check-update',
action='store_true',
- default=False,
+ default=True,
dest='disable_check_update',
help='disable online Glances version ckeck',
)
--
2.49.0

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="ncurses"
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 linux-info optfeature
DESCRIPTION="CLI curses based monitoring tool"
HOMEPAGE="https://github.com/nicolargo/glances"
SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
$(python_gen_cond_dep '
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/orjson[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]
')
"
# PYTHON_USEDEP omitted on purpose
BDEPEND="doc? ( dev-python/sphinx-rtd-theme )
test? ( $(python_gen_cond_dep 'dev-python/selenium[${PYTHON_USEDEP}]') )"
CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS"
PATCHES=(
"${FILESDIR}/${PN}-4.3.1-disable-update-check.patch"
)
distutils_enable_tests pytest
distutils_enable_sphinx docs --no-autodoc
pkg_setup() {
linux-info_pkg_setup
python-single-r1_pkg_setup
}
python_test() {
"${EPYTHON}" -m pytest ./tests/test_core.py || die "tests failed with ${EPYTHON}"
}
src_install() {
distutils-r1_src_install
mv "${ED}/usr/share/doc/${PN}"/* "${ED}/usr/share/doc/${PF}" || die
rmdir "${ED}/usr/share/doc/${PN}" || die
}
pkg_postinst() {
optfeature "Autodiscover mode" dev-python/zeroconf
optfeature "Cloud support" dev-python/requests
optfeature "Docker monitoring support" dev-python/docker
optfeature "SVG graph support" dev-python/pygal
optfeature "IP plugin" dev-python/netifaces
optfeature "RAID monitoring" dev-python/pymdstat
optfeature "RAID support" dev-python/pymdstat
optfeature "SNMP support" dev-python/pysnmp
}