diff options
| author | baldr333 <ra@afu.re> | 2023-12-21 19:54:24 -0500 |
|---|---|---|
| committer | baldr333 <ra@afu.re> | 2023-12-21 19:54:24 -0500 |
| commit | 2f3f4f6a3db13640bf8e097b41fd1dbfc3701f81 (patch) | |
| tree | d22ea7370713249178a4899262768d88af46223e /sys-process | |
Initial commit
Diffstat (limited to 'sys-process')
| -rw-r--r-- | sys-process/htop-vim/Manifest | 2 | ||||
| -rw-r--r-- | sys-process/htop-vim/htop-vim-3.0.3.ebuild | 104 |
2 files changed, 106 insertions, 0 deletions
diff --git a/sys-process/htop-vim/Manifest b/sys-process/htop-vim/Manifest new file mode 100644 index 0000000..e8b105c --- /dev/null +++ b/sys-process/htop-vim/Manifest @@ -0,0 +1,2 @@ +DIST 3.0.3vim.tar.gz 293221 BLAKE2B 542f21c0b6ae27ef6d75dca5825cae4c0760415d806e080f046e6467a804c49e616f484e1b0f53813fd5330d830caa6c1a800a102c1f7aff26d403c33b9fd882 SHA512 0a4f3c3d080a3487f209753beae42605523e20d474fe634c0a726a0976a7b40a8e63a3942fedb1013067d4463e9e0deee0bcb10b5f85c3e1e04c3e55d350d5f5 +EBUILD htop-vim-3.0.3.ebuild 2478 BLAKE2B da08dded75d6c5a4c6b469e8ab13a31da4aef3fd18e13aba593967bd6e523cb9b193b09015479e6e950a59d7adf0828ce7bbbc44d9db84eb3127ce39940427ed SHA512 8c1b5e45f97cf6b3fd41de902241d757474818c5e6b09ea6b5f4bec6467f0079169485b144233b6bf83932c99577bf0d9fd817926cac3491727f1da5f86e2234 diff --git a/sys-process/htop-vim/htop-vim-3.0.3.ebuild b/sys-process/htop-vim/htop-vim-3.0.3.ebuild new file mode 100644 index 0000000..8568084 --- /dev/null +++ b/sys-process/htop-vim/htop-vim-3.0.3.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit autotools linux-info python-any-r1 xdg-utils + +DESCRIPTION="interactive process viewer" +HOMEPAGE="https://github.com/KoffeinFlummi/htop-vim" +SRC_URI="https://github.com/KoffeinFlummi/${PN}/archive/refs/tags/${PV}vim.tar.gz" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="caps debug delayacct hwloc kernel_FreeBSD kernel_linux lm-sensors llvm-libunwind openvz unicode unwind vserver" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + sys-libs/ncurses:=[unicode(+)?] + hwloc? ( sys-apps/hwloc:= ) + unwind? ( + !llvm-libunwind? ( sys-libs/libunwind:= ) + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + ) + kernel_linux? ( + caps? ( sys-libs/libcap ) + delayacct? ( dev-libs/libnl:3 ) + lm-sensors? ( sys-apps/lm-sensors ) + ) +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS}" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +S="${WORKDIR}/${P}vim" + +pkg_setup() { + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop (what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + python-any-r1_pkg_setup + linux-info_pkg_setup +} + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + [[ ${CBUILD} != ${CHOST} ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=( + --enable-unicode + $(use_enable debug) + $(use_enable hwloc) + $(use_enable !hwloc affinity) + $(use_enable openvz) + $(use_enable unicode) + $(use_enable unwind) + $(use_enable vserver) + ) + + if use kernel_linux ; then + myeconfargs+=( + $(use_enable caps capabilities) + $(use_enable delayacct) + $(use_enable lm-sensors sensors) + ) + else + if use kernel_Darwin ; then + # Upstream default to checking but --enable-affinity + # overrides this. Simplest to just disable on Darwin + # given it works on BSD anyway. + myeconfargs+=( --disable-affinity ) + fi + + myeconfargs+=( + --disable-capabilities + --disable-delayacct + --disable-sensors + ) + fi + + econf ${myeconfargs[@]} +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} |
