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: Wed, 27 Nov 2019 11:03:05
Message-Id: 1574852575.c99f84ddf1119d540f6563a1adadc7e1ef477f62.zlogene@gentoo
1 commit: c99f84ddf1119d540f6563a1adadc7e1ef477f62
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 27 11:01:03 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 11:02:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99f84dd
7
8 sys-cluster/rdma-core: Version bump (v26.1)
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
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-26.1.ebuild | 95 +++++++++++++++++++++++++++++
15 2 files changed, 96 insertions(+)
16
17 diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest
18 index ab03357fbe4..d700143e185 100644
19 --- a/sys-cluster/rdma-core/Manifest
20 +++ b/sys-cluster/rdma-core/Manifest
21 @@ -1,3 +1,4 @@
22 DIST rdma-core-24.0.tar.gz 1219485 BLAKE2B 400076305ca634a14d8f46df3477f9e3e753b95840237a217cfffe1a78e93ee90994e628f2a0693bde588ce15965df0014acb55bc92c36e3c45011cc69e9898a SHA512 0ef2b2b4250a1738adec964911a286f60e2310472c943dac1be45c70974a8bd1f32ee96013bff9e492132403af810aee1350d404a87ae7671731f7a5bd80c655
23 DIST rdma-core-25.0.tar.gz 1494005 BLAKE2B 406926ae57ae4914a77c82025906270bbc45632ed1e0ecb44b1662d797066bf27275c8b4c4bee40795880bdb4ed06f8f9d3714cfffc64132c00395328ee0527f SHA512 b2c6eaf16f89fb913e35b0eb602f60e8bf45979673597c34006ed78c2e671cf1e50b1cc0752740dc474a58fc94eb0c3f66175183e6b903605ff1512469ceef38
24 DIST rdma-core-26.0.tar.gz 1444585 BLAKE2B 148b25f6108199b3845446e9f45a59d089e7f546218d70abeadffd5cf3e0b26569bc5099abfb6152f376689e04a493529a61fc1d6b40c153aca23b5df2776bf7 SHA512 7dfdd93d10e4c56cac5ac0c1b46900fe7a6c634920e470ebc582abd7a0f57c57d585b4e0dbbb5ad84f46ca8518132e684d44d33c62b0509461ed5b62b7e0f19b
25 +DIST rdma-core-26.1.tar.gz 1601313 BLAKE2B 459baa80d5cb74386e567880ec7fd2de9e4aaea177e7022603db5dd70f633152d86618bbab637ca337a9314c0c19b5c0f6a51f281802fa0b8bedb8fad149f26c SHA512 98f0e3f3e951f3b2287711526a2a6c62cb4e0f5eb693894c7f44783c5eb6d4213c9eedc39b2370563e8bca17e133497e475392004ace0203d2a39de371254742
26
27 diff --git a/sys-cluster/rdma-core/rdma-core-26.1.ebuild b/sys-cluster/rdma-core/rdma-core-26.1.ebuild
28 new file mode 100644
29 index 00000000000..3e47003b5b6
30 --- /dev/null
31 +++ b/sys-cluster/rdma-core/rdma-core-26.1.ebuild
32 @@ -0,0 +1,95 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{5,6,7} )
39 +
40 +inherit cmake-utils 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="~amd64 ~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? ( dev-python/cython[${PYTHON_USEDEP}] )"
67 +
68 +RDEPEND="${COMMON_DEPEND}
69 + !sys-fabric/infiniband-diags
70 + !sys-fabric/libibverbs
71 + !sys-fabric/librdmacm
72 + !sys-fabric/libibumad
73 + !sys-fabric/ibacm
74 + !sys-fabric/libibmad
75 + !sys-fabric/srptools
76 + !sys-fabric/infinipath-psm
77 + !sys-fabric/libcxgb3
78 + !sys-fabric/libcxgb4
79 + !sys-fabric/libmthca
80 + !sys-fabric/libmlx4
81 + !sys-fabric/libmlx5
82 + !sys-fabric/libocrdma
83 + !sys-fabric/libnes"
84 +
85 +BDEPEND="virtual/pkgconfig"
86 +
87 +PATCHES=( "${FILESDIR}"/optional_pandoc.patch )
88 +
89 +pkg_setup() {
90 + python-single-r1_pkg_setup
91 +
92 +}
93 +
94 +src_configure() {
95 + local mycmakeargs=(
96 + -DCMAKE_INSTALL_SYSCONFDIR=/etc
97 + -DCMAKE_INSTALL_FULL_RUNDIR=/run
98 + -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib
99 + -DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d
100 + -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)"
101 + -DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes
102 + $(ver_test -ge 25 && echo -DCMAKE_DISABLE_FIND_PACKAGE_rst2man=yes)
103 + -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex systemd no yes)"
104 + -DENABLE_VALGRIND="$(usex valgrind)"
105 + -DENABLE_RESOLVE_NEIGH="$(usex neigh)"
106 + -DENABLE_STATIC="$(usex static-libs)"
107 + )
108 +
109 + if use python; then
110 + mycmakeargs+=( -DNO_PYVERBS=OFF )
111 + else
112 + mycmakeargs+=( -DNO_PYVERBS=ON )
113 + fi
114 +
115 + cmake-utils_src_configure
116 +}
117 +
118 +src_install() {
119 + cmake-utils_src_install
120 +
121 + udev_dorules "${D}"/etc/udev/rules.d/70-persistent-ipoib.rules
122 + rm -r "${D}"/etc/{udev,init.d} || die
123 +
124 + newinitd "${FILESDIR}"/ibacm.init ibacm
125 + newinitd "${FILESDIR}"/iwpmd.init iwpmd
126 + newinitd "${FILESDIR}"/srpd.init srpd
127 +}