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/8" # 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 !<app-i18n/man-pages-de-2.12-r1
36 !<app-i18n/man-pages-pl-0.7-r1
37 !<sys-apps/sysvinit-2.88-r6
40 S="${WORKDIR}/${PN}-ng-${PV}"
43 "${FILESDIR}"/${PN}-3.3.11-sysctl-manpage.patch # 565304
44 "${FILESDIR}"/${PN}-3.3.12-proc-tests.patch # 583036
50 # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support
51 append-lfs-flags #471102
55 $(use_enable modern-top)
58 $(use_enable selinux libselinux)
59 $(use_enable static-libs static)
61 $(use_enable unicode watch8bit)
63 econf "${myeconfargs[@]}"
67 emake check </dev/null #461302
75 mv "${ED}"/usr/bin/ps "${ED}"/bin/ || die
77 mv "${ED}"/usr/bin/kill "${ED}"/bin/ || die
80 gen_usr_ldscript -a procps
81 find "${ED}" -type f -name '*.la' -delete || die