Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hwloc/
Date: Tue, 15 Jun 2021 04:06:14
Message-Id: 1623729804.3b1873b49fd822d1cb3575e8e80bb9ca5c923261.sam@gentoo
1 commit: 3b1873b49fd822d1cb3575e8e80bb9ca5c923261
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 15 03:52:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 15 04:03:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b1873b4
7
8 sys-apps/hwloc: add 2.5.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/hwloc/Manifest | 1 +
13 sys-apps/hwloc/hwloc-2.5.0.ebuild | 98 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/sys-apps/hwloc/Manifest b/sys-apps/hwloc/Manifest
17 index 8a16dd2b5ea..3f39e4ffc93 100644
18 --- a/sys-apps/hwloc/Manifest
19 +++ b/sys-apps/hwloc/Manifest
20 @@ -1,2 +1,3 @@
21 DIST hwloc-1.11.13.tar.bz2 4120436 BLAKE2B a6a09f7d6abeaa9d23df555cfd2186ae61f0f67f83fa8f1aa4bc29376b233a8511f11745f35064f39545c7e62e9d271c1334b6906712028729e138e41d1f212f SHA512 dd38bcc9a5df2dcfd3bbd828ab13fdb1c1d21747a0b62e6c87df95d2835c0472590344ff5bda4f6c28e597eaba1ea11c0bc96907ad45f1215f51f95ac9f58138
22 DIST hwloc-2.3.0.tar.bz2 6414781 BLAKE2B 60bc80ae73d0ae9ff9a438474efe682dfff28149b843645c928d4c5531f25c7763311816d5c86028efa9e07aa86935dbb6cff56ec429ee607ce4e5b5b88d4bbe SHA512 ecb0950cd08eab7d97f7cbef9db0dc31cb5b4debedaae6f48814625ee5da0153fdc1f863fa84c5d59b76634e877a348fa556f3c8c29fc43bc6ae7211c313906c
23 +DIST hwloc-2.5.0.tar.bz2 6688349 BLAKE2B 684367afa5fc056b9bf04b3a95bd8239ec70127d5e582948ca16a09323614ad0ef77278a120544af0a740b456f1ba24bffc861b9f132293fafb7da0597d0b688 SHA512 9e8b829868cb9f5fd2fe84d8515d0dc8725ddc84c788a61c1e9e918eb2b29659eb73cf22a4189e6b887f5bfa3255c206f4ba924bd7fe2c88c185f4308c0949cd
24
25 diff --git a/sys-apps/hwloc/hwloc-2.5.0.ebuild b/sys-apps/hwloc/hwloc-2.5.0.ebuild
26 new file mode 100644
27 index 00000000000..639dc0bff21
28 --- /dev/null
29 +++ b/sys-apps/hwloc/hwloc-2.5.0.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit autotools bash-completion-r1 cuda flag-o-matic systemd toolchain-funcs multilib-minimal
37 +
38 +MY_PV="v$(ver_cut 1-2)"
39 +
40 +DESCRIPTION="displays the hardware topology in convenient formats"
41 +HOMEPAGE="https://www.open-mpi.org/projects/hwloc/"
42 +SRC_URI="https://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2"
43 +
44 +LICENSE="BSD"
45 +SLOT="0/15"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="cairo +cpuid cuda debug gl libudev netloc nvml +pci static-libs svg xml X"
48 +
49 +# opencl support dropped with x11-drivers/ati-drivers being removed (#582406).
50 +# Anyone with hardware is welcome to step up and help test to get it re-added.
51 +
52 +RDEPEND=">=sys-libs/ncurses-5.9-r3:0[${MULTILIB_USEDEP}]
53 +
54 + cairo? ( >=x11-libs/cairo-1.12.14-r4[X?,svg?,${MULTILIB_USEDEP}] )
55 + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
56 + gl? ( x11-drivers/nvidia-drivers[static-libs,tools] )
57 + libudev? ( virtual/libudev )
58 + netloc? ( !sys-apps/netloc )
59 + nvml? ( x11-drivers/nvidia-drivers[${MULTILIB_USEDEP}] )
60 + pci? (
61 + >=sys-apps/pciutils-3.3.0-r2[${MULTILIB_USEDEP}]
62 + >=x11-libs/libpciaccess-0.13.1-r1[${MULTILIB_USEDEP}]
63 + )
64 + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )"
65 +DEPEND="${RDEPEND}"
66 +
67 +# 2.69-r5 for --runstatedir
68 +BDEPEND="
69 + >=sys-devel/autoconf-2.69-r5
70 + virtual/pkgconfig
71 +"
72 +
73 +PATCHES=( "${FILESDIR}/${PN}-1.8.1-gl.patch" )
74 +DOCS=( AUTHORS NEWS README VERSION )
75 +
76 +src_prepare() {
77 + default
78 + eautoreconf
79 +
80 + if use cuda ; then
81 + append-cflags "-I${EPREFIX}/opt/cuda/include"
82 + append-cppflags "-I${EPREFIX}/opt/cuda/include"
83 + fi
84 +}
85 +
86 +multilib_src_configure() {
87 + export HWLOC_PKG_CONFIG="$(tc-getPKG_CONFIG)" #393467
88 +
89 + if use cuda ; then
90 + local -x LDFLAGS="${LDFLAGS}"
91 + append-ldflags "-L${EPREFIX}/opt/cuda/$(get_libdir)"
92 + fi
93 +
94 + local myconf=(
95 + --disable-opencl
96 + --disable-plugin-ltdl
97 + --enable-plugins
98 + --enable-shared
99 + --runstatedir="${EPREFIX}/run"
100 + $(multilib_native_use_enable cuda)
101 + $(multilib_native_use_enable gl)
102 + $(use_enable cairo)
103 + $(use_enable cpuid)
104 + $(use_enable debug)
105 + $(use_enable libudev)
106 + $(use_enable netloc)
107 + $(use_enable nvml)
108 + $(use_enable pci)
109 + $(use_enable static-libs static)
110 + $(use_enable xml libxml2)
111 + $(use_with X x)
112 + )
113 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
114 +}
115 +
116 +multilib_src_install_all() {
117 + default
118 + case ${ARCH} in
119 + # hwloc-dump-hwdata binary only built on those arches, so don't install non-working unit.
120 + amd64|x86)
121 + systemd_dounit "${ED}/usr/share/hwloc/hwloc-dump-hwdata.service" ;;
122 + esac
123 + mv "${ED}"/usr/share/bash-completion/completions/hwloc{,-annotate} || die
124 + bashcomp_alias hwloc-annotate \
125 + hwloc-{diff,ps,compress-dir,gather-cpuid,distrib,info,bind,patch,calc,ls,gather-topology}
126 + bashcomp_alias hwloc-annotate lstopo{,-no-graphics}
127 + find "${ED}" -name '*.la' -delete || die
128 +}