Gentoo Archives: gentoo-dev

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v3 1/2] fortran-2.eclass: support EAPI 7
Date: Mon, 05 Nov 2018 15:38:21
Message-Id: 20181105183808.4b3041a6b960b76b9c8233e7@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH v2] fortran-2.eclass: support EAPI 7 by Andrew Savchenko
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