1 |
Hi all! |
2 |
|
3 |
Here follow updated patches for fortran-2.eclass EAPI 7 update. |
4 |
|
5 |
Patch 1 contains only EAPI 7 related changes: |
6 |
|
7 |
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass |
8 |
index 820cbbcb49bd..b871d16e3e05 100644 |
9 |
--- a/eclass/fortran-2.eclass |
10 |
+++ b/eclass/fortran-2.eclass |
11 |
@@ -8,7 +8,7 @@ |
12 |
# @AUTHOR: |
13 |
# Author Justin Lecher <jlec@g.o> |
14 |
# Test functions provided by Sebastien Fabbro and Kacper Kowalik |
15 |
-# @SUPPORTED_EAPIS: 4 5 6 |
16 |
+# @SUPPORTED_EAPIS: 4 5 6 7 |
17 |
# @BLURB: Simplify fortran compiler management |
18 |
# @DESCRIPTION: |
19 |
# If you need a fortran compiler, then you should be inheriting |
20 |
this eclass. @@ -27,13 +27,16 @@ |
21 |
# |
22 |
# FORTRAN_NEED_OPENMP=1 |
23 |
|
24 |
-inherit eutils toolchain-funcs |
25 |
- |
26 |
+inherit toolchain-funcs |
27 |
case ${EAPI:-0} in |
28 |
- 4|5|6) EXPORT_FUNCTIONS pkg_setup ;; |
29 |
+ # not used in the eclass, but left for backward |
30 |
compatibility with legacy users |
31 |
+ 4|5|6) inherit eutils ;; |
32 |
+ 7) ;; |
33 |
*) die "EAPI=${EAPI} is not supported" ;; |
34 |
esac |
35 |
|
36 |
+EXPORT_FUNCTIONS pkg_setup |
37 |
+ |
38 |
if [[ ! ${_FORTRAN_2_CLASS} ]]; then |
39 |
|
40 |
# @ECLASS-VARIABLE: FORTRAN_NEED_OPENMP |
41 |
|
42 |
|
43 |
Best regards, |
44 |
Andrew Savchenko |