# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Id: 04c905319b25e38f6ee01776a93c9ef3443fed8e $ EAPI=8 inherit fcaps linux-info toolchain-funcs DESCRIPTION="top utility for IO (C port)" HOMEPAGE="https://github.com/Tomas-M/iotop" SRC_URI="https://github.com/Tomas-M/iotop/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/iotop-${PV}" LICENSE="GPL-2+" SLOT="0" KEYWORDS="amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" RDEPEND=" sys-libs/ncurses:= " DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS" FILECAPS=( cap_net_admin=eip usr/bin/iotop-c ) PATCHES=( "${FILESDIR}"/${PN}-1.26-name_clash.patch ) src_prepare() { sed -e 's/-D_FORTIFY_SOURCE=2//' -i Makefile || die default } src_compile() { emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1 } src_install() { newbin iotop{,-c} dodoc README.md newman iotop{,-c}.8 }