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: Thu, 27 Oct 2016 06:06:13
Message-Id: 1477548360.31a8766e174a9063a21d0c359750f9cbafbb8e0d.polynomial-c@gentoo
1 commit: 31a8766e174a9063a21d0c359750f9cbafbb8e0d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 27 06:02:28 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 27 06:06:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a8766e
7
8 sys-process/psmisc: Revbump to add sub-slot dependency for sys-libs/ncurses.
9
10 This was requested in Gentoo bug #598166.
11 Committed straight to stable where -r2 was stable as nothing changed except for
12 the EAPI and the ncurses sub-slot dep.
13
14 Package-Manager: portage-2.3.2
15 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
16
17 sys-process/psmisc/psmisc-22.21-r3.ebuild | 61 +++++++++++++++++++++++++++++++
18 1 file changed, 61 insertions(+)
19
20 diff --git a/sys-process/psmisc/psmisc-22.21-r3.ebuild b/sys-process/psmisc/psmisc-22.21-r3.ebuild
21 new file mode 100644
22 index 00000000..f0859ec
23 --- /dev/null
24 +++ b/sys-process/psmisc/psmisc-22.21-r3.ebuild
25 @@ -0,0 +1,61 @@
26 +# Copyright 1999-2016 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=5
31 +
32 +inherit eutils
33 +
34 +DESCRIPTION="A set of tools that use the proc filesystem"
35 +HOMEPAGE="http://psmisc.sourceforge.net/"
36 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
41 +IUSE="ipv6 nls selinux X"
42 +
43 +RDEPEND=">=sys-libs/ncurses-5.7-r7:0=
44 + nls? ( virtual/libintl )
45 + selinux? ( sys-libs/libselinux )"
46 +DEPEND="${RDEPEND}
47 + >=sys-devel/libtool-2.2.6b
48 + nls? ( sys-devel/gettext )"
49 +
50 +DOCS="AUTHORS ChangeLog NEWS README"
51 +
52 +PATCHES=(
53 + "${FILESDIR}/${P}-fuser_typo_fix.patch"
54 + "${FILESDIR}/${P}-sysmacros.patch"
55 +)
56 +
57 +src_prepare() {
58 + epatch "${PATCHES[@]}"
59 +}
60 +
61 +src_configure() {
62 + econf \
63 + $(use_enable selinux) \
64 + --disable-harden-flags \
65 + $(use_enable ipv6) \
66 + $(use_enable nls)
67 +}
68 +
69 +src_compile() {
70 + # peekfd is a fragile crap hack #330631
71 + nonfatal emake -C src peekfd || touch src/peekfd{.o,}
72 + emake
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + use X || rm -f "${ED}"/usr/bin/pstree.x11
79 +
80 + [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd
81 + [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1
82 +
83 + # fuser is needed by init.d scripts; use * wildcard for #458250
84 + dodir /bin
85 + mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die
86 +}