1 |
commit: cf454d08fecd41079efb8780c60b70536a588fcf |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 7 20:47:37 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 7 21:47:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf454d08 |
7 |
|
8 |
sys-process/procps: Add multilib support |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
sys-process/procps/procps-3.3.16-r1.ebuild | 87 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 87 insertions(+) |
14 |
|
15 |
diff --git a/sys-process/procps/procps-3.3.16-r1.ebuild b/sys-process/procps/procps-3.3.16-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..105cce9b4e4 |
18 |
--- /dev/null |
19 |
+++ b/sys-process/procps/procps-3.3.16-r1.ebuild |
20 |
@@ -0,0 +1,87 @@ |
21 |
+# Copyright 1999-2019 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+inherit toolchain-funcs flag-o-matic multilib-minimal usr-ldscript |
27 |
+ |
28 |
+DESCRIPTION="standard informational utilities and process-handling tools" |
29 |
+HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps" |
30 |
+SRC_URI="mirror://sourceforge/${PN}-ng/${PN}-ng-${PV}.tar.xz" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0/8" # libprocps.so |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
35 |
+IUSE="elogind +kill modern-top +ncurses nls selinux static-libs systemd test unicode" |
36 |
+RESTRICT="!test? ( test )" |
37 |
+ |
38 |
+COMMON_DEPEND=" |
39 |
+ elogind? ( sys-auth/elogind ) |
40 |
+ ncurses? ( >=sys-libs/ncurses-5.7-r7:=[unicode?] ) |
41 |
+ selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) |
42 |
+ systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) |
43 |
+" |
44 |
+DEPEND="${COMMON_DEPEND} |
45 |
+ elogind? ( virtual/pkgconfig ) |
46 |
+ ncurses? ( virtual/pkgconfig ) |
47 |
+ systemd? ( virtual/pkgconfig ) |
48 |
+ test? ( dev-util/dejagnu )" |
49 |
+RDEPEND=" |
50 |
+ ${COMMON_DEPEND} |
51 |
+ kill? ( |
52 |
+ !sys-apps/coreutils[kill] |
53 |
+ !sys-apps/util-linux[kill] |
54 |
+ ) |
55 |
+ !<app-i18n/man-pages-de-2.12-r1 |
56 |
+ !<app-i18n/man-pages-pl-0.7-r1 |
57 |
+" |
58 |
+ |
59 |
+S="${WORKDIR}/${PN}-ng-${PV}" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-3.3.11-sysctl-manpage.patch # 565304 |
63 |
+ "${FILESDIR}"/${PN}-3.3.12-proc-tests.patch # 583036 |
64 |
+ |
65 |
+ # Upstream fixes |
66 |
+) |
67 |
+ |
68 |
+multilib_src_configure() { |
69 |
+ # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support |
70 |
+ append-lfs-flags #471102 |
71 |
+ local myeconfargs=( |
72 |
+ --docdir='$(datarootdir)'/doc/${PF} |
73 |
+ $(use_with elogind) |
74 |
+ $(multilib_native_use_enable kill) |
75 |
+ $(multilib_native_use_enable modern-top) |
76 |
+ $(multilib_native_use_with ncurses) |
77 |
+ $(use_enable nls) |
78 |
+ $(use_enable selinux libselinux) |
79 |
+ $(use_enable static-libs static) |
80 |
+ $(use_with systemd) |
81 |
+ $(use_enable unicode watch8bit) |
82 |
+ ) |
83 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
84 |
+} |
85 |
+ |
86 |
+multilib_src_test() { |
87 |
+ emake check </dev/null #461302 |
88 |
+} |
89 |
+ |
90 |
+multilib_src_install() { |
91 |
+ default |
92 |
+ #dodoc sysctl.conf |
93 |
+ |
94 |
+ if multilib_is_native_abi ; then |
95 |
+ dodir /bin |
96 |
+ mv "${ED}"/usr/bin/ps "${ED}"/bin/ || die |
97 |
+ if use kill; then |
98 |
+ mv "${ED}"/usr/bin/kill "${ED}"/bin/ || die |
99 |
+ fi |
100 |
+ |
101 |
+ gen_usr_ldscript -a procps |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+multilib_src_install_all() { |
106 |
+ find "${ED}" -type f -name '*.la' -delete || die |
107 |
+} |