# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 OFED_VER="4.17" OFED_RC="" OFED_RC_VER="" RDMA_CORE_VER="17.2-1" inherit openib cmake-utils DESCRIPTION="librxe" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="sys-fabric/libibverbs:${SLOT}" RDEPEND="virtual/perl-Getopt-Long ${DEPEND}" block_other_ofed_versions LIBVER=$(get_version_component_range 1 ${RDMA_CORE_VER}) src_configure() { local mycmakeargs=( -DCMAKE_SKIP_RPATH=ON ) cmake-utils_src_configure } src_compile() { cmake-utils_src_compile rxe-rdmav${LIBVER} } src_install() { insinto /etc/libibverbs.d doins ${BUILD_DIR}/providers/rxe/rxe.driver insinto /usr/$(get_libdir)/libibverbs insopts -m0755 doins ${BUILD_DIR}/lib/librxe-rdmav${LIBVER}.so sed -e "s^@CMAKE_INSTALL_FULL_SHAREDSTATEDIR@^${EPREFIX}/var/lib^" \ ${S}/providers/rxe/rxe_cfg.in > ${T}/rxe_cfg dobin ${T}/rxe_cfg }