summaryrefslogtreecommitdiff
path: root/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-01-29 21:15:25 +0100
committerDavid Seifert <soap@gentoo.org>2022-01-29 21:15:25 +0100
commit4712a5e0752bd99b4ecc2e92ba0c1b5627230c36 (patch)
treeffc962842a79d149c1fc1f2a145c885c36ca7179 /sys-cluster/native-mpi/native-mpi-0-r1.ebuild
parent2418aff6c39849c986cba64e4bd5a1e8cab4cb9d (diff)
downloadgentoo-4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.tar.gz
gentoo-4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.tar.bz2
gentoo-4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.zip
sys-cluster/native-mpi: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-cluster/native-mpi/native-mpi-0-r1.ebuild')
-rw-r--r--sys-cluster/native-mpi/native-mpi-0-r1.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-cluster/native-mpi/native-mpi-0-r1.ebuild b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
new file mode 100644
index 000000000000..592189462df5
--- /dev/null
+++ b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Use native OS MPI in prefix environment"
+HOMEPAGE="https://prefix.gentoo.org"
+S="${WORKDIR}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64-linux ~x86-linux"
+
+src_install() {
+ 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 ${EROOT}/etc/env.d/99mpi"
+ einfo "to add needed values for your os-mpi implentation"
+ einfo
+}