diff options
Diffstat (limited to 'sys-process/htop-vim/htop-vim-9999.ebuild')
| -rw-r--r-- | sys-process/htop-vim/htop-vim-9999.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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 +} |
