Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/native-mpi/
Date: Sat, 29 Jan 2022 20:15:35
Message-Id: 1643487325.4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.soap@gentoo
1 commit: 4712a5e0752bd99b4ecc2e92ba0c1b5627230c36
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 20:15:25 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 20:15:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4712a5e0
7
8 sys-cluster/native-mpi: update EAPI 6 -> 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 ...{native-mpi-0.ebuild => native-mpi-0-r1.ebuild} | 31 +++++++++-------------
13 1 file changed, 13 insertions(+), 18 deletions(-)
14
15 diff --git a/sys-cluster/native-mpi/native-mpi-0.ebuild b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
16 similarity index 54%
17 rename from sys-cluster/native-mpi/native-mpi-0.ebuild
18 rename to sys-cluster/native-mpi/native-mpi-0-r1.ebuild
19 index 3d8f73847393..592189462df5 100644
20 --- a/sys-cluster/native-mpi/native-mpi-0.ebuild
21 +++ b/sys-cluster/native-mpi/native-mpi-0-r1.ebuild
22 @@ -1,36 +1,31 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 +# Copyright 1999-2022 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=6
28 +EAPI=8
29 +
30 +inherit toolchain-funcs
31
32 DESCRIPTION="Use native OS MPI in prefix environment"
33 HOMEPAGE="https://prefix.gentoo.org"
34 -SRC_URI=""
35 +S="${WORKDIR}"
36
37 LICENSE="GPL-3"
38 SLOT="0"
39 KEYWORDS="~amd64-linux ~x86-linux"
40 -IUSE=""
41 -
42 -DEPEND=""
43 -RDEPEND="${DEPEND}"
44 -
45 -S="${WORKDIR}"
46
47 src_install() {
48 - cat >> "${T}"/99mpi <<- EOF || die
49 - MPI_CC=gcc
50 - MPI_CXX=g++
51 - MPI_FC=gfortran
52 - MPI_F90=gfortran
53 - HPMPI_F77=gfortran
54 - EOF
55 - doenvd "${T}"/99mpi
56 + newenvd - 99mpi <<-_EOF_
57 + MPI_CC=$(tc-getCC)
58 + MPI_CXX=$(tc-getCXX)
59 + MPI_FC=$(tc-getFC)
60 + MPI_F90=$(tc-getFC)
61 + HPMPI_F77=$(tc-getFC)
62 + _EOF_
63 }
64
65 pkg_postinst() {
66 einfo
67 - einfo "Please read and edit ${EPREFIX}/etc/env.d/99mpi"
68 + einfo "Please read and edit ${EROOT}/etc/env.d/99mpi"
69 einfo "to add needed values for your os-mpi implentation"
70 einfo
71 }