From 39d47cb2043e774a153e4d8a17d8b932e80e5ca0 Mon Sep 17 00:00:00 2001 From: baldr333 Date: Sat, 2 Aug 2025 21:34:36 -0400 Subject: add htop-vim-9999.ebuild --- sys-process/htop-vim/htop-vim-9999.ebuild | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 sys-process/htop-vim/htop-vim-9999.ebuild (limited to 'sys-process/htop-vim/htop-vim-9999.ebuild') diff --git a/sys-process/htop-vim/htop-vim-9999.ebuild b/sys-process/htop-vim/htop-vim-9999.ebuild new file mode 100644 index 0000000..5189c38 --- /dev/null +++ b/sys-process/htop-vim/htop-vim-9999.ebuild @@ -0,0 +1,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 +} -- cgit v1.2.3