commit:     8f7d2d6d25b67776127a0d220c32d76873c8e3c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 25 02:50:37 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 02:50:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7d2d6d

sys-process/numactl: add 2.0.19

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/numactl/Manifest              |  1 +
 sys-process/numactl/numactl-2.0.19.ebuild | 67 +++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest
index dd43d2b7a2b7..d89ecf2e36e6 100644
--- a/sys-process/numactl/Manifest
+++ b/sys-process/numactl/Manifest
@@ -1,2 +1,3 @@
 DIST numactl-2.0.16.tar.gz 450003 BLAKE2B 
3ac38129b914d62958182020f57969878f2817bd3155c6b5362a66f96deb2058268fa8004729a2d3333642c8c0bee73a451030a287958fa145247b7685e426aa
 SHA512 
6e17724567c363a08994fe7f5569b6ec62bd1ae608244945fddcb2d6a212b08140340f0d862595ba4016fcba95193e851cb286798f685d314b4c72687af6d879
 DIST numactl-2.0.18.tar.gz 447393 BLAKE2B 
c89d0492e7b3a3e7c569c0081ecf914f2a145d28de1fa0edf26ab23c5e9e1605e4e8f127fd28498436dd2c36ebf9a59e1feba2b525b2b3a00e2aab7be5eb0a54
 SHA512 
17abe7a3744065edb5ec1e27135873629031c509313809ca99e0d9254f7a5cb00cce5b32173e811e9b9d7cb407aabdcbe3c6be6e3b094ad3e7d696a154b7f1ec
+DIST numactl-2.0.19.tar.gz 450856 BLAKE2B 
75825bcc5b6beb3a8772dcfab6678b16a35d2ed797afbbe9cc948878c86c3417347ce156e3754711457c2194a018dabc6d47dc6399ec881a3ade16f7cf498f12
 SHA512 
484b7001e7b4efa32784353e937857e83cf62abbfab92a51cc8573cb49104a1084ffcefd8c5fb66cd389d08eaf201568bbca800cab7a48c42fcdf4397d4d10dc

diff --git a/sys-process/numactl/numactl-2.0.19.ebuild 
b/sys-process/numactl/numactl-2.0.19.ebuild
new file mode 100644
index 000000000000..559e2e5aecb6
--- /dev/null
+++ b/sys-process/numactl/numactl-2.0.19.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Utilities and libraries for NUMA systems"
+HOMEPAGE="https://github.com/numactl/numactl";
+if [[ ${PV} == 9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/numactl/numactl.git";
+else
+       
SRC_URI="https://github.com/numactl/numactl/releases/download/v${PV}/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc 
~x86 ~amd64-linux"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="static-libs"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.0.18-numademo-cflags.patch # bug #540856
+)
+
+src_prepare() {
+       default
+
+       eautoreconf
+
+       # We need to copy the sources or else tests will fail
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
+}
+
+multilib_src_compile() {
+       multilib_is_native_abi && default || emake libnuma.la
+}
+
+multilib_src_test() {
+       if multilib_is_native_abi ; then
+               if [[ -d /sys/devices/system/node ]] ; then
+                       einfo "The only generically safe test is regress2."
+                       einfo "The other test cases require 2 NUMA nodes."
+                       emake regress2
+               else
+                       ewarn "You do not have baseline NUMA support in your 
kernel, skipping tests."
+               fi
+       fi
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" \
+               install$(multilib_is_native_abi || echo "-libLTLIBRARIES 
install-includeHEADERS")
+       find "${ED}"/usr/ -type f -name libnuma.la -delete || die
+}
+
+multilib_src_install_all() {
+       local DOCS=( README.md )
+       einstalldocs
+
+       # Delete man pages provided by the man-pages package, bug #238805
+       rm -r "${ED}"/usr/share/man/man[25] || die
+}

Reply via email to