Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/psmisc/
Date: Mon, 11 Jun 2018 19:15:12
Message-Id: 1528744501.fbc71b8200b4e63a54e904ffd7555b5babf18024.polynomial-c@gentoo
1 commit: fbc71b8200b4e63a54e904ffd7555b5babf18024
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 11 19:14:03 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 11 19:15:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbc71b82
7
8 sys-process/psmisc: EAPI-6 revbump.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 sys-process/psmisc/psmisc-23.1-r1.ebuild | 51 ++++++++++++++++++++++++++++++++
13 1 file changed, 51 insertions(+)
14
15 diff --git a/sys-process/psmisc/psmisc-23.1-r1.ebuild b/sys-process/psmisc/psmisc-23.1-r1.ebuild
16 new file mode 100644
17 index 00000000000..87dc7a307bc
18 --- /dev/null
19 +++ b/sys-process/psmisc/psmisc-23.1-r1.ebuild
20 @@ -0,0 +1,51 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +DESCRIPTION="A set of tools that use the proc filesystem"
27 +HOMEPAGE="http://psmisc.sourceforge.net/"
28 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
33 +IUSE="ipv6 nls selinux X"
34 +
35 +RDEPEND=">=sys-libs/ncurses-5.7-r7:0=
36 + nls? ( virtual/libintl )
37 + selinux? ( sys-libs/libselinux )"
38 +DEPEND="${RDEPEND}
39 + >=sys-devel/libtool-2.2.6b
40 + nls? ( sys-devel/gettext )"
41 +
42 +DOCS=( AUTHORS ChangeLog NEWS README )
43 +
44 +src_configure() {
45 + local myeconfargs=(
46 + $(use_enable selinux)
47 + --disable-harden-flags
48 + $(use_enable ipv6)
49 + $(use_enable nls)
50 + )
51 + econf "${myeconfargs[@]}"
52 +}
53 +
54 +src_compile() {
55 + # peekfd is a fragile crap hack #330631
56 + nonfatal emake -C src peekfd || touch src/peekfd{.o,}
57 + emake
58 +}
59 +
60 +src_install() {
61 + default
62 +
63 + use X || rm -f "${ED%/}"/usr/bin/pstree.x11
64 +
65 + [[ -s ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/bin/peekfd
66 + [[ -e ${ED%/}/usr/bin/peekfd ]] || rm -f "${ED%/}"/usr/share/man/man1/peekfd.1
67 +
68 + # fuser is needed by init.d scripts; use * wildcard for #458250
69 + dodir /bin
70 + mv "${ED%/}"/usr/bin/*fuser "${ED%/}"/bin || die
71 +}