summaryrefslogtreecommitdiff
path: root/sys-cluster/native-mpi
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/native-mpi')
-rw-r--r--sys-cluster/native-mpi/Manifest2
-rw-r--r--sys-cluster/native-mpi/native-mpi-0-r1.ebuild (renamed from sys-cluster/native-mpi/native-mpi-0.ebuild)31
2 files changed, 14 insertions, 19 deletions
diff --git a/sys-cluster/native-mpi/Manifest b/sys-cluster/native-mpi/Manifest
index b62f3ba63d4f..614c80dad0ce 100644
--- a/sys-cluster/native-mpi/Manifest
+++ b/sys-cluster/native-mpi/Manifest
@@ -1,2 +1,2 @@
-EBUILD native-mpi-0.ebuild 645 BLAKE2B 781bd35f13338c39b965ecf6de7b5e0fd6befa6845c3c383a34ee4ab533dc2f6c0a090d88e08000e332090d3816a9b681d32a1f49aba29418f76b33d715252fc SHA512 d5eccc584467424974f5414e476a2c684f759f585de41d6ecf0434aeb4e546d4fd748f889d910b281606fa4ba7d341c6746453136b7ff8f7f147315dde98c59d
+EBUILD native-mpi-0-r1.ebuild 616 BLAKE2B e44243b89ff10433d37cb2e935505698691c3c313c4d56b11b80f455c1456af25563516c422e156042597e26587aa2dd90a798fb9f42a9c6164d4e2a755b1e94 SHA512 7af8213df966aefdb53ae2b15728ca47c1d79c8ea4f3d1e4189078652a8fc2f60172f7b2f66f25c4027d90837ba3b8536d697b6b9648470d0a09b5304031d1a0
MISC metadata.xml 365 BLAKE2B f2dc555a4624d6e786e280767e684ae5dee03d938a89cc76fea2878b2b34871fa21a0848200edf20a2383d8068d66b33402e51fc1f43f9b1dd658ed3489a7c1b SHA512 f8d2a8b140bae789476b2ea920fc83fedce037cf50de7e866fe038c497ff5799d69c511534242ab79c65d3133d1de69a9eec027364525cea07ebb2867eff5e94
diff --git a/sys-cluster/native-mpi/native-mpi-0.ebuild b/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
}