1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs flag-o-matic usr-ldscript
8 DESCRIPTION="standard informational utilities and process-handling tools"
9 HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps"
10 SRC_URI="mirror://sourceforge/${PN}-ng/${PN}-ng-${PV}.tar.xz"
13 SLOT="0/6" # libprocps.so
14 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~amd64-linux ~x86-linux"
15 IUSE="elogind +kill modern-top +ncurses nls selinux static-libs systemd test unicode"
16 RESTRICT="!test? ( test )"
19 elogind? ( sys-auth/elogind )
20 ncurses? ( >=sys-libs/ncurses-5.7-r7:=[unicode?] )
21 selinux? ( sys-libs/libselinux )
22 systemd? ( sys-apps/systemd )
24 DEPEND="${COMMON_DEPEND}
25 elogind? ( virtual/pkgconfig )
26 ncurses? ( virtual/pkgconfig )
27 systemd? ( virtual/pkgconfig )
28 test? ( dev-util/dejagnu )"
32 !sys-apps/coreutils[kill]
33 !sys-apps/util-linux[kill]
35 !<sys-apps/sysvinit-2.88-r6
38 S="${WORKDIR}/${PN}-ng-${PV}"
41 "${FILESDIR}"/${PN}-3.3.11-sysctl-manpage.patch # 565304
42 "${FILESDIR}"/${PN}-3.3.12-proc-tests.patch # 583036
48 # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support
49 append-lfs-flags #471102
51 --docdir='$(datarootdir)'/doc/${PF}
54 $(use_enable modern-top)
57 $(use_enable selinux libselinux)
58 $(use_enable static-libs static)
60 $(use_enable unicode watch8bit)
62 econf "${myeconfargs[@]}"
66 emake check </dev/null #461302
74 mv "${ED%/}"/usr/bin/ps "${ED%/}"/bin/ || die
76 mv "${ED%/}"/usr/bin/kill "${ED}"/bin/ || die
79 gen_usr_ldscript -a procps
80 find "${D}" -name '*.la' -delete || die