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