1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="A set of tools that use the proc filesystem"
7 HOMEPAGE="http://psmisc.sourceforge.net/"
8 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
13 IUSE="ipv6 nls selinux X"
15 RDEPEND=">=sys-libs/ncurses-5.7-r7:0=
16 nls? ( virtual/libintl )
17 selinux? ( sys-libs/libselinux )"
19 >=sys-devel/libtool-2.2.6b
20 nls? ( sys-devel/gettext )"
22 DOCS=( AUTHORS ChangeLog NEWS README )
26 --disable-harden-flags
31 econf "${myeconfargs[@]}"
37 use X || rm -f "${ED}"/usr/bin/pstree.x11
39 [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd
40 [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1
42 # fuser is needed by init.d scripts; use * wildcard for #458250
44 mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die