public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/native-mpi/
Date: Sat, 29 Jan 2022 20:15:31 +0000 (UTC)	[thread overview]
Message-ID: <1643487325.4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.soap@gentoo> (raw)

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
 }


             reply	other threads:[~2022-01-29 20:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 20:15 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-12-23 21:22 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/native-mpi/ David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1643487325.4712a5e0752bd99b4ecc2e92ba0c1b5627230c36.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox