Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/rdma-core/
Date: Thu, 07 Jan 2021 11:08:48
Message-Id: 1610017721.b45ded8ac10cc3ec1a34eb85eb1fb04d68422e54.zlogene@gentoo
1 commit: b45ded8ac10cc3ec1a34eb85eb1fb04d68422e54
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 11:07:28 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 11:08:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b45ded8a
7
8 sys-cluster/rdma-core: Version bump (v33.0)
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 sys-cluster/rdma-core/Manifest | 1 +
14 sys-cluster/rdma-core/rdma-core-33.0.ebuild | 104 ++++++++++++++++++++++++++++
15 2 files changed, 105 insertions(+)
16
17 diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest
18 index a4962d0f9a7..1488868ffae 100644
19 --- a/sys-cluster/rdma-core/Manifest
20 +++ b/sys-cluster/rdma-core/Manifest
21 @@ -1,3 +1,4 @@
22 DIST rdma-core-30.0.tar.gz 1485452 BLAKE2B 8774a41eaba486007a4b695fc5196935102c172607136ca37d03fa626c5bb0b75df7b9cc6a6126219111b4ba828984ffbb235e9afee1e941852650a2b2412dc7 SHA512 4a0ec689e27de71f33e21df9813f78bec81b99c941da234d8d4050a3e1a1b157488d7a4d58d7f62472f32061a36dadad43d986238dcbaf24a29dded3827ec374
23 DIST rdma-core-31.0.tar.gz 1501133 BLAKE2B 5e67d68ab8eb4019ffb18e7d1995caa8e84a2136201c8649f64093a6c8b8c7b8255e997c12bfd38f33de5608e0fa58a35a1a45e144cf9a65bde671a9f087de1c SHA512 b453343d419ccdc7eb0ae7092dfc84cfcd39b0b64a3e4b3bae18b5078f8e9ce7b2c1c126c535372d4717bb5af3cf2ca26a70e271f00631c66077e619814865c0
24 DIST rdma-core-32.0.tar.gz 1525119 BLAKE2B 8f754c04be3f13a90a162fde09f96b26d66534aa7284c12e6c0765390f00412cf34052cc1c313f01df8b8bc49cad459a72350cea6e08316387cd6016fd7cb019 SHA512 fbc458e47801b8869fa0a6a045c2ecf10b9021f8fe115cedad8601a4672f116f393a353dcac238ad297935950a09be4a6faa45e373ea6248711d077a57737c16
25 +DIST rdma-core-33.0.tar.gz 1549162 BLAKE2B 7b7c8711eaeb9e66159962bcf0f70644cbb4af96df70f3c9ee6e9d9c8c3e4de5d3248666a0b3fe490537f91cc18c5d09448c72b98c45585e0645594deedee071 SHA512 64ace358c6336519131aea858012e22791bf2ab95f06d655a87835361b5822f5ce0c29db8ddb83121a62f4606418d5fa11358e7ad84da4f93f6233fb3947e52c
26
27 diff --git a/sys-cluster/rdma-core/rdma-core-33.0.ebuild b/sys-cluster/rdma-core/rdma-core-33.0.ebuild
28 new file mode 100644
29 index 00000000000..f6e231ffefa
30 --- /dev/null
31 +++ b/sys-cluster/rdma-core/rdma-core-33.0.ebuild
32 @@ -0,0 +1,104 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{7,8} )
39 +
40 +inherit cmake python-single-r1 udev systemd
41 +
42 +DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem"
43 +HOMEPAGE="https://github.com/linux-rdma/rdma-core"
44 +
45 +if [[ ${PV} == "9999" ]]; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core"
48 +else
49 + SRC_URI="https://github.com/linux-rdma/rdma-core/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
51 +fi
52 +
53 +LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )"
54 +SLOT="0"
55 +IUSE="neigh python static-libs systemd valgrind"
56 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +
58 +COMMON_DEPEND="
59 + virtual/libudev:=
60 + neigh? ( dev-libs/libnl:3 )
61 + systemd? ( sys-apps/systemd:= )
62 + valgrind? ( dev-util/valgrind )
63 + python? ( ${PYTHON_DEPS} )"
64 +
65 +DEPEND="${COMMON_DEPEND}
66 + python? (
67 + $(python_gen_cond_dep '
68 + dev-python/cython[${PYTHON_MULTI_USEDEP}]
69 + ')
70 + )"
71 +
72 +RDEPEND="${COMMON_DEPEND}
73 + !sys-fabric/infiniband-diags
74 + !sys-fabric/libibverbs
75 + !sys-fabric/librdmacm
76 + !sys-fabric/libibumad
77 + !sys-fabric/ibacm
78 + !sys-fabric/libibmad
79 + !sys-fabric/srptools
80 + !sys-fabric/infinipath-psm
81 + !sys-fabric/libcxgb3
82 + !sys-fabric/libcxgb4
83 + !sys-fabric/libmthca
84 + !sys-fabric/libmlx4
85 + !sys-fabric/libmlx5
86 + !sys-fabric/libocrdma
87 + !sys-fabric/libnes"
88 +
89 +BDEPEND="virtual/pkgconfig"
90 +
91 +PATCHES=( "${FILESDIR}"/optional_pandoc.patch )
92 +
93 +pkg_setup() {
94 + use python && python-single-r1_pkg_setup
95 +
96 +}
97 +
98 +src_configure() {
99 + local mycmakeargs=(
100 + -DCMAKE_INSTALL_SYSCONFDIR=/etc
101 + -DCMAKE_INSTALL_RUNDIR=/run
102 + -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib
103 + -DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d
104 + -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)"
105 + -DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes
106 + $(ver_test -ge 25 && echo -DCMAKE_DISABLE_FIND_PACKAGE_rst2man=yes)
107 + -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex systemd no yes)"
108 + -DENABLE_VALGRIND="$(usex valgrind)"
109 + -DENABLE_RESOLVE_NEIGH="$(usex neigh)"
110 + -DENABLE_STATIC="$(usex static-libs)"
111 + )
112 +
113 + if use python; then
114 + mycmakeargs+=( -DNO_PYVERBS=OFF )
115 + else
116 + mycmakeargs+=( -DNO_PYVERBS=ON )
117 + fi
118 +
119 + cmake_src_configure
120 +}
121 +
122 +src_install() {
123 + cmake_src_install
124 +
125 + udev_dorules "${D}"/etc/udev/rules.d/70-persistent-ipoib.rules
126 + rm -r "${D}"/etc/{udev,init.d} || die
127 +
128 + if use neigh; then
129 + newinitd "${FILESDIR}"/ibacm.init ibacm
130 + fi
131 +
132 + newinitd "${FILESDIR}"/iwpmd.init iwpmd
133 + newinitd "${FILESDIR}"/srpd.init srpd
134 +
135 + use python && python_optimize
136 +}