commit: 4712a5e0752bd99b4ecc2e92ba0c1b5627230c36
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 29 20:15:25 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jan 29 20:15:25 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4712a5e0
sys-cluster/native-mpi: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap <AT> gentoo.org>
...{native-mpi-0.ebuild => native-mpi-0-r1.ebuild} | 31 +++++++++-------------
1 file changed, 13 insertions(+), 18 deletions(-)
diff --git a/sys-cluster/native-mpi/native-mpi-0.ebuild
b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
similarity index 54%
rename from sys-cluster/native-mpi/native-mpi-0.ebuild
rename to sys-cluster/native-mpi/native-mpi-0-r1.ebuild
index 3d8f73847393..592189462df5 100644
--- a/sys-cluster/native-mpi/native-mpi-0.ebuild
+++ b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
@@ -1,36 +1,31 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
+
+inherit toolchain-funcs
DESCRIPTION="Use native OS MPI in prefix environment"
HOMEPAGE="https://prefix.gentoo.org"
-SRC_URI=""
+S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64-linux ~x86-linux"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}"
src_install() {
- cat >> "${T}"/99mpi <<- EOF || die
- MPI_CC=gcc
- MPI_CXX=g++
- MPI_FC=gfortran
- MPI_F90=gfortran
- HPMPI_F77=gfortran
- EOF
- doenvd "${T}"/99mpi
+ newenvd - 99mpi <<-_EOF_
+ MPI_CC=$(tc-getCC)
+ MPI_CXX=$(tc-getCXX)
+ MPI_FC=$(tc-getFC)
+ MPI_F90=$(tc-getFC)
+ HPMPI_F77=$(tc-getFC)
+ _EOF_
}
pkg_postinst() {
einfo
- einfo "Please read and edit ${EPREFIX}/etc/env.d/99mpi"
+ einfo "Please read and edit ${EROOT}/etc/env.d/99mpi"
einfo "to add needed values for your os-mpi implentation"
einfo
}