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/numactl/
Date: Mon, 02 Sep 2019 10:29:17
Message-Id: 1567420147.73091ea1aa893bdae121a694f92c7c98ccad871f.polynomial-c@gentoo
1 commit: 73091ea1aa893bdae121a694f92c7c98ccad871f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 2 10:25:59 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 2 10:29:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73091ea1
7
8 sys-process/numactl: Bump to version 2.0.13
9
10 Package-Manager: Portage-2.3.75, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-process/numactl/Manifest | 1 +
14 sys-process/numactl/numactl-2.0.13.ebuild | 65 +++++++++++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest
18 index 38874062a67..879976de1f4 100644
19 --- a/sys-process/numactl/Manifest
20 +++ b/sys-process/numactl/Manifest
21 @@ -1,2 +1,3 @@
22 DIST numactl-2.0.11.tar.gz 408175 BLAKE2B 0767d555d5254e780ef50bd66215e84208e88fb37422fd86443e53ee52faef4242ff21e6028bdb92c4e1fa7815cdb23e87cd084763539dc1d560097f43bd563f SHA512 1969d7ee0ff3de0d6f1fa42ec089a17cdb3f92cb35d453b8f8b2eec49724c43787ecbd213357013a8f2500a260b0df9844d515815ca3a0376314a0eed050a0d4
23 DIST numactl-2.0.12.tar.gz 423020 BLAKE2B 39d33612591df805715c51280bf34b8328ba6fc49bdaf9dd3bd67e076f9d319c9622ef72766c12e319f4be27ee9ec7f5ecb054a6e8c7c3cf568a69aea624d511 SHA512 316b10f50e6eee4cee9cf191f19381ec4a61980354eec3f9fe43fef21465bee28a82adeb9c235d4877e82950ccd14c9473b79fd1e2f5a7f598ec2fac230780ff
24 +DIST numactl-2.0.13.tar.gz 438096 BLAKE2B f615fafdb366930c6cdee1e4ef3d1e1d5e21f8f1c09aa904c0ebfa56972a99144991c6907127ef35794ca19d711e41b54488c5bfaeca8a0149ab9697d8c1ef75 SHA512 f7b747eb8f3ded9f3661cb0fc7b65b5ed490677f881f8fe6a000baf714747515853b4e5c8781b014241180bf16e9f0bfdf2c6f758725e34b4938696ba496b72a
25
26 diff --git a/sys-process/numactl/numactl-2.0.13.ebuild b/sys-process/numactl/numactl-2.0.13.ebuild
27 new file mode 100644
28 index 00000000000..e38e4a77477
29 --- /dev/null
30 +++ b/sys-process/numactl/numactl-2.0.13.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools toolchain-funcs multilib-minimal
38 +
39 +DESCRIPTION="Utilities and libraries for NUMA systems"
40 +HOMEPAGE="https://github.com/numactl/numactl"
41 +if [[ "${PV}" == 9999 ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/numactl/numactl.git"
44 +else
45 + SRC_URI="https://github.com/numactl/numactl/releases/download/v${PV}/${P}.tar.gz"
46 + # ARM lacks the __NR_migrate_pages syscall.
47 + KEYWORDS="~amd64 -arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux"
48 +fi
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +IUSE="static-libs"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856
56 +)
57 +
58 +src_prepare() {
59 + default
60 + eautoreconf
61 + # We need to copy the sources or else tests will fail
62 + multilib_copy_sources
63 +}
64 +
65 +multilib_src_configure() {
66 + ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
67 +}
68 +
69 +multilib_src_compile() {
70 + multilib_is_native_abi && default || emake libnuma.la
71 +}
72 +
73 +multilib_src_test() {
74 + if multilib_is_native_abi ; then
75 + if [[ -d /sys/devices/system/node ]] ; then
76 + einfo "The only generically safe test is regress2."
77 + einfo "The other test cases require 2 NUMA nodes."
78 + emake regress2
79 + else
80 + ewarn "You do not have baseline NUMA support in your kernel, skipping tests."
81 + fi
82 + fi
83 +}
84 +
85 +multilib_src_install() {
86 + emake DESTDIR="${D}" \
87 + install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS")
88 + find "${ED}"/usr/ -type f -name libnuma.la -delete || die
89 +}
90 +
91 +multilib_src_install_all() {
92 + local DOCS=( README.md )
93 + einstalldocs
94 + # delete man pages provided by the man-pages package #238805
95 + rm -r "${ED}"/usr/share/man/man[25] || die
96 +}