diff options
author | David Seifert <soap@gentoo.org> | 2022-02-15 20:40:38 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-02-15 20:40:38 +0100 |
commit | 78a6e02c592b40688d82e705027edd365805ead9 (patch) | |
tree | 61822f110a00ad29caefb9acb88305d1b5f9896f /eclass | |
parent | distutils-r1.eclass: Use python_has_version in ...enable_sphinx (diff) | |
download | gentoo-78a6e02c592b40688d82e705027edd365805ead9.tar.gz gentoo-78a6e02c592b40688d82e705027edd365805ead9.tar.bz2 gentoo-78a6e02c592b40688d82e705027edd365805ead9.zip |
openib.eclass: treeclean
Closes: https://bugs.gentoo.org/830999
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/openib.eclass | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass deleted file mode 100644 index 02a6b40fcd3c..000000000000 --- a/eclass/openib.eclass +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @DEAD -# @ECLASS: openib.eclass -# @MAINTAINER: -# maintainer-needed@gentoo.org -# @AUTHOR: -# Author: Alexey Shvetsov <alexxy@gentoo.org> -# @SUPPORTED_EAPIS: 5 6 -# @BLURB: Simplify working with OFED packages - -case ${EAPI:-0} in - [56]) inherit eutils rpm versionator ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; -esac - -EXPORT_FUNCTIONS src_unpack - -if [[ -z ${_OPENIB_ECLASS} ]] ; then -_OPENIB_ECLASS=1 - -HOMEPAGE="https://www.openfabrics.org/" -LICENSE="|| ( GPL-2 BSD-2 )" - -# @ECLASS-VARIABLE: OFED_VER -# @DESCRIPTION: -# Defines OFED version eg 1.4 or 1.4.0.1 - -# @ECLASS-VARIABLE: OFED_RC -# @DESCRIPTION: -# Sets if this version is RC - -# @ECLASS-VARIABLE: OFED_RC_VER -# @DESCRIPTION: -# Sets RC version - - -# @ECLASS-VARIABLE: OFED_SUFFIX -# @DESCRIPTION: -# Defines OFED package suffix eg -1.ofed1.4 - -# @ECLASS-VARIABLE: OFED_SNAPSHOT -# @DESCRIPTION: -# Defines if src tarball is git snapshot - -SLOT="${OFED_VER}" - -# @ECLASS-VARIABLE: OFED_VERSIONS -# @DESCRIPTION: -# Defines array of ofed version supported by eclass - -OFED_VERSIONS=( - "3.5" - "3.12" - ) - -# @FUNCTION: block_other_ofed_versions -# @DESCRIPTION: -# function that creates blockers list for ofed -block_other_ofed_versions() { - local slot - RDEPEND="${RDEPEND} !sys-fabric/${PN}:0" - for slot in ${OFED_VERSIONS[@]}; do - if [[ ${slot} != ${SLOT} ]]; then - RDEPEND+=" !sys-fabric/${PN}:${slot}" - fi - done -} - -OFED_BASE_VER=$(get_version_component_range 1-3 ${OFED_VER}) - -if [ -z $OFED_RC ] ; then - SRC_URI="https://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VER}/OFED-${OFED_VER}.tgz" -else - SRC_URI="https://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VER}/OFED-${OFED_VER}-rc${OFED_RC_VER}.tgz" -fi - -case ${PN} in - ofed) - MY_PN="compat-rdma" - ;; - *) - MY_PN="${PN}" - ;; -esac - -case ${PV} in - *p*) - MY_PV="${PV/p/}" - ;; - *) - MY_PV="${PV}" - ;; -esac - -case ${MY_PN} in - ofa_kernel|compat-rdma) - EXT="tgz" - ;; - *) - EXT="tar.gz" - ;; -esac - -if [ -z ${OFED_SRC_SNAPSHOT} ]; then - S="${WORKDIR}/${MY_PN}-${MY_PV}" -else - S="${WORKDIR}/${MY_PN}-${MY_PV}-${OFED_SUFFIX}" -fi - - -# @FUNCTION: openib_src_unpack -# @DESCRIPTION: -# This function will unpack OFED packages -openib_src_unpack() { - unpack ${A} - if [ -z ${OFED_RC} ]; then - case ${PN} in - ofed) - rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.src.rpm" - ;; - *) - rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm" - ;; - esac - else - case ${PN} in - ofed) - rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.src.rpm" - ;; - *) - rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm" - ;; - esac - fi - if [ -z ${OFED_SNAPSHOT} ]; then - case ${PN} in - ofed) - unpack ./${MY_PN}-${OFED_VER}.${EXT} - ;; - *) - unpack ./${MY_PN}-${MY_PV}.${EXT} - ;; - esac - else - case ${PN} in - ofed) - unpack ./${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.${EXT} - ;; - *) - unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT} - ;; - esac - fi -} - -fi |