blob: 5189c38d35a77036fd4ea3465e49e7ddfd19c1fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="htop with vim-style keybindings"
HOMEPAGE="https://github.com/KoffeinFlummi/htop-vim"
SRC_URI="https://github.com/KoffeinFlummi/htop-vim/archive/refs/heads/master.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="caps debug hwloc openvz sensors unicode vserver"
DEPEND="
sys-libs/ncurses:0=[unicode(+)?]
caps? ( sys-libs/libcap )
hwloc? ( sys-apps/hwloc:= )
sensors? ( sys-apps/lm-sensors:= )
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
S="${WORKDIR}/${PN}-master"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable caps capabilities)
$(use_enable debug)
$(use_enable hwloc)
$(use_enable openvz)
$(use_enable sensors)
$(use_enable unicode)
$(use_enable vserver)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
mv "${ED}"/usr/bin/htop "${ED}"/usr/bin/htop-vim || die
mv "${ED}"/usr/share/man/man1/htop.1 "${ED}"/usr/share/man/man1/htop-vim.1 || die
}
|