Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/spheno/, sci-physics/spheno/files/
Date: Sun, 07 Aug 2022 07:21:03
Message-Id: 1659856848.128f7ed51c79a81eb10d7751b8f00d5a61f35960.andrewammerlaan@gentoo
1 commit: 128f7ed51c79a81eb10d7751b8f00d5a61f35960
2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
3 AuthorDate: Sun Jul 24 00:29:19 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 7 07:20:48 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=128f7ed5
7
8 sci-physics/spheno: tc-export AR
9
10 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
11 Closes: https://github.com/gentoo/sci/pull/1162
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-physics/spheno/files/spheno-3.3.8-gfortran.patch | 16 +++++++++++++++-
15 sci-physics/spheno/spheno-3.3.8.ebuild | 4 ++--
16 2 files changed, 17 insertions(+), 3 deletions(-)
17
18 diff --git a/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
19 index e4538e7c1..8f6fa7e19 100644
20 --- a/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
21 +++ b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
22 @@ -1,5 +1,5 @@
23 --- a/src/Makefile 2022-07-20 11:47:44.078639381 +0200
24 -+++ b/src/Makefile 2022-07-22 19:24:00.389938450 +0200
25 ++++ b/src/Makefile 2022-07-24 02:16:38.972041809 +0200
26 @@ -9,10 +9,11 @@
27 # options for various compilers
28 #
29 @@ -16,3 +16,17 @@
30
31 # Intels ifort, debug modus
32 ifeq (${F90},ifortg)
33 +@@ -70,11 +71,11 @@
34 + #
35 + .f90.a:
36 + ${F90} ${comp} $<
37 +- ar -ruc $@ $*.o
38 ++ $(AR) -ruc $@ $*.o
39 + rm -f $*.o
40 + .F90.a:
41 + ${F90} ${comp} ${PreDef} $<
42 +- ar -ruc $@ $*.o
43 ++ $(AR) -ruc $@ $*.o
44 + rm -f $*.o
45 + .f90.o:
46 + ${F90} ${comp} $<
47
48 diff --git a/sci-physics/spheno/spheno-3.3.8.ebuild b/sci-physics/spheno/spheno-3.3.8.ebuild
49 index 21caf1019..9a740b89e 100644
50 --- a/sci-physics/spheno/spheno-3.3.8.ebuild
51 +++ b/sci-physics/spheno/spheno-3.3.8.ebuild
52 @@ -26,8 +26,8 @@ PATCHES=( "${FILESDIR}"/${P}-gfortran.patch )
53 src_compile() {
54 # single thread force needed since fortan mods depend on each other
55 export MAKEOPTS=-j1
56 - F90=`tc-getFC`
57 - emake F90="${F90}"
58 + tc-export FC AR
59 + emake AR="${AR}" F90="${FC}"
60 }
61
62 src_install() {