# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Id: 00bc0c7a6f9a3176f66e7dd789f0b93c92ffe947 $ EAPI=8 inherit autotools flag-o-matic multilib-minimal toolchain-funcs usr-ldscript DESCRIPTION="Standard informational utilities and process-handling tools" HOMEPAGE="https://gitlab.com/procps-ng/procps" # Per e.g. https://gitlab.com/procps-ng/procps/-/releases/v4.0.5, the dist tarballs # are still hosted on SF. SRC_URI="https://downloads.sourceforge.net/${PN}-ng/${PN}-ng-${PV}.tar.xz" S="${WORKDIR}"/${PN}-ng-${PV} # See bug #913210 LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+" SLOT="0/1-ng" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" IUSE="elogind +kill modern-top +ncurses nls selinux skill static-libs systemd test unicode" RESTRICT="!test? ( test )" DEPEND=" elogind? ( sys-auth/elogind ) elibc_musl? ( sys-libs/error-standalone ) ncurses? ( >=sys-libs/ncurses-5.7-r7:=[unicode(+)?] ) selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) " RDEPEND=" ${DEPEND} !4.0.5 if use elibc_musl ; then append-cflags "$($(tc-getPKG_CONFIG) --cflags error-standalone)" append-libs "$($(tc-getPKG_CONFIG) --libs error-standalone)" fi local myeconfargs=( --sbindir="${EPREFIX}/sbin" # No elogind multilib support $(multilib_native_use_with elogind) $(multilib_native_use_enable kill) $(multilib_native_use_enable modern-top) $(multilib_native_enable pidof) $(multilib_native_enable pidwait) $(multilib_native_use_with ncurses) # bug #794997 $(multilib_native_use_enable !elibc_musl w) $(use_enable nls) $(use_enable selinux libselinux) $(use_enable static-libs static) $(use_with systemd) $(use_enable skill) ) if use ncurses; then # Only pass whis when we are building the 'watch' command myeconfargs+=( $(multilib_native_use_enable unicode watch8bit) ) fi ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } multilib_src_test() { local ps="${BUILD_DIR}/src/ps/pscommand" if [[ $("${ps}" --no-headers -o cls -q $$) == IDL ]]; then # bug #708230 ewarn "Skipping tests due to SCHED_IDLE" else # bug #461302 emake check