Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/
Date: Mon, 02 May 2022 07:07:15
Message-Id: 1651475223.ffded4e8c9ef3bf635ca88e8a381fb03917290f8.polynomial-c@gentoo
1 commit: ffded4e8c9ef3bf635ca88e8a381fb03917290f8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 07:03:30 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 07:07:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffded4e8
7
8 sys-process/htop: Bump to version 3.2.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-process/htop/Manifest | 1 +
13 sys-process/htop/htop-3.2.0.ebuild | 106 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 107 insertions(+)
15
16 diff --git a/sys-process/htop/Manifest b/sys-process/htop/Manifest
17 index 48494e948695..1e8c23f8a542 100644
18 --- a/sys-process/htop/Manifest
19 +++ b/sys-process/htop/Manifest
20 @@ -1,3 +1,4 @@
21 DIST htop-3.0.5.tar.gz 297931 BLAKE2B a6e62f99ef349809d11bb14b4d515036601aa457507b34a96354607f136cc4e0d3d40a715f1576c70833db051d989fa55142b4f8bba0f5f432ea3676364d9575 SHA512 7dae83ceff6b3f30e69c30c9559dbb3bf69281df006c6a26e4e2c49dd5a147e05ed7bafeeac8ec5bedc8ba670470100cc128209a92654858f98df09a9394594f
22 DIST htop-3.1.1.tar.gz 381277 BLAKE2B 4383991e8821e4c27a4f5cb002b198fa7915465c03d9fb83324fa2df732d8553be4061c2c559b92de934b0c214bb4445b068795050e1bee2afb803d7f32b9a67 SHA512 5e4ec9b5fdf4583c8a345dcc2fe9395737e3a6e8dd8e6547800b959be084b9d57ae30bf891f79a25f6bf99ec0b6eb7eaba8bc851072c5a550de70df4178dc07d
23 DIST htop-3.1.2.tar.gz 387656 BLAKE2B a9682b6f3475fbae6ab7fd57330271190ec32267c5a8f2aac845cd18c566eaa9beed642c1e67fbc9606f120df600c27ed2ef0480a29ef304875a99898c1f10e4 SHA512 7e08b820042e480ca61137ff24b468804b49b95c1bbedaf82029dd79d29c2c541c5211284ec075692203788bbb868a9d4326ffd24c68419e22eec13ae5012700
24 +DIST htop-3.2.0.tar.gz 393712 BLAKE2B fff50fce1dd58d5738ca4a75a8b4078aa34e9544798c81bb18a2674823ab13a93ecec8c00d034704ecaab6a871efa2b021550dc1f0a03aa86f638c28e84f769e SHA512 174eaa7333fa60e40f67148560c53125e7aaf46a48e7f3ecfa2daa68553c94b3d076d03320afd479dcee07e739c0ff286a81b67cbc994782c33e798d3ed4605c
25
26 diff --git a/sys-process/htop/htop-3.2.0.ebuild b/sys-process/htop/htop-3.2.0.ebuild
27 new file mode 100644
28 index 000000000000..028834776fc9
29 --- /dev/null
30 +++ b/sys-process/htop/htop-3.2.0.ebuild
31 @@ -0,0 +1,106 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit autotools linux-info python-any-r1 xdg-utils
40 +
41 +DESCRIPTION="interactive process viewer"
42 +HOMEPAGE="https://htop.dev/ https://github.com/htop-dev/htop"
43 +SRC_URI="https://github.com/htop-dev/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
45 +
46 +LICENSE="BSD GPL-2+"
47 +SLOT="0"
48 +IUSE="caps debug delayacct hwloc lm-sensors llvm-libunwind openvz unicode unwind vserver"
49 +
50 +BDEPEND="virtual/pkgconfig"
51 +RDEPEND="
52 + sys-libs/ncurses:=[unicode(+)?]
53 + hwloc? ( sys-apps/hwloc:= )
54 + unwind? (
55 + !llvm-libunwind? ( sys-libs/libunwind:= )
56 + llvm-libunwind? ( sys-libs/llvm-libunwind:= )
57 + )
58 + kernel_linux? (
59 + caps? ( sys-libs/libcap )
60 + delayacct? ( dev-libs/libnl:3 )
61 + lm-sensors? ( sys-apps/lm-sensors )
62 + )
63 +"
64 +DEPEND="${RDEPEND}
65 + ${PYTHON_DEPS}"
66 +
67 +DOCS=( ChangeLog README )
68 +
69 +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS"
70 +
71 +S="${WORKDIR}/${P/_}"
72 +
73 +pkg_setup() {
74 + if ! has_version sys-process/lsof ; then
75 + ewarn "To use lsof features in htop (what processes are accessing"
76 + ewarn "what files), you must have sys-process/lsof installed."
77 + fi
78 +
79 + python-any-r1_pkg_setup
80 + linux-info_pkg_setup
81 +}
82 +
83 +src_prepare() {
84 + default
85 +
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + if [[ ${CBUILD} != ${CHOST} ]] ; then
91 + export ac_cv_file__proc_{meminfo,stat}=yes #328971
92 + fi
93 +
94 + local myeconfargs=(
95 + --enable-unicode
96 + $(use_enable debug)
97 + $(use_enable hwloc)
98 + $(use_enable !hwloc affinity)
99 + $(use_enable openvz)
100 + $(use_enable unicode)
101 + $(use_enable unwind)
102 + $(use_enable vserver)
103 + )
104 +
105 + if use kernel_linux ; then
106 + myeconfargs+=(
107 + $(use_enable caps capabilities)
108 + $(use_enable delayacct)
109 + $(use_enable lm-sensors sensors)
110 + )
111 + else
112 + if use kernel_Darwin ; then
113 + # Upstream default to checking but --enable-affinity
114 + # overrides this. Simplest to just disable on Darwin
115 + # given it works on BSD anyway.
116 + myeconfargs+=( --disable-affinity )
117 + fi
118 +
119 + myeconfargs+=(
120 + --disable-capabilities
121 + --disable-delayacct
122 + --disable-sensors
123 + )
124 + fi
125 +
126 + econf ${myeconfargs[@]}
127 +}
128 +
129 +pkg_postinst() {
130 + xdg_desktop_database_update
131 + xdg_icon_cache_update
132 +}
133 +
134 +pkg_postrm() {
135 + xdg_desktop_database_update
136 + xdg_icon_cache_update
137 +}