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