aboutsummaryrefslogtreecommitdiff
blob: 97a5e28c825ed62f3089e6e4e5d25de50db1bc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: gentoo-mpi.eclass
# @MAINTAINER: 
# Michael Gilroy <michael.gilroy24@gmail.com>
# @BLURB: Functions for providing varied mpi builds.

case ${EAPI:-0} in
  6) ;;
  *) die "gentoo-mpi.eclass does not support EAPI ${EAPI}"
esac

SLOT="${PVR}"

export EPREFIX="${EPREFIX}/usr/lib/mpi/${PF}"

# @ECLASS-FUNCTION: mpi-providers_safe_mv
# @USAGE: $mpi-providers_save_mv < installation directory (usually EPREFIX)>
mpi-providers_safe_mv() {
    DEST="$1/usr/lib/mpi"
    if [[ ! -d "$DEST" ]]; then
        mkdir "$DEST" || die
    fi

    mv "$1/*" "$DEST" || die
}