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