Gentoo Archives: gentoo-dev

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] fortran-2.eclass: support EAPI 7
Date: Sat, 27 Oct 2018 22:38:53
Message-Id: 20181028013841.7bd52f2b363d0b11fbe97dd1@gentoo.org
1 Hi all!
2
3 The only blocker for EAPI 7 update is eutils inheritance, but it
4 seems to be not used within the current eclass code, probably a
5 remnant from older days. So it is removed.
6
7 Looks like no other EAPI 7 specific changes needed.
8
9 diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
10 index 820cbbcb49bd..1baf776e368a 100644
11 --- a/eclass/fortran-2.eclass
12 +++ b/eclass/fortran-2.eclass
13 @@ -1,4 +1,4 @@
14 -# Copyright 1999-2017 Gentoo Foundation
15 +# Copyright 1999-2018 Gentoo Authors
16 # Distributed under the terms of the GNU General Public License v2
17
18 # @ECLASS: fortran-2.eclass
19 @@ -8,7 +8,7 @@
20 # @AUTHOR:
21 # Author Justin Lecher <jlec@g.o>
22 # Test functions provided by Sebastien Fabbro and Kacper Kowalik
23 -# @SUPPORTED_EAPIS: 4 5 6
24 +# @SUPPORTED_EAPIS: 4 5 6 7
25 # @BLURB: Simplify fortran compiler management
26 # @DESCRIPTION:
27 # If you need a fortran compiler, then you should be inheriting
28 this eclass. @@ -27,10 +27,10 @@
29 #
30 # FORTRAN_NEED_OPENMP=1
31
32 -inherit eutils toolchain-funcs
33 +inherit toolchain-funcs
34
35 case ${EAPI:-0} in
36 - 4|5|6) EXPORT_FUNCTIONS pkg_setup ;;
37 + 4|5|6|7) EXPORT_FUNCTIONS pkg_setup ;;
38 *) die "EAPI=${EAPI} is not supported" ;;
39 esac
40
41
42 Best regards,
43 Andrew Savchenko

Replies

Subject Author
Re: [gentoo-dev] [PATCH] fortran-2.eclass: support EAPI 7 "Michał Górny" <mgorny@g.o>
Re: [gentoo-dev] [PATCH] fortran-2.eclass: support EAPI 7 "Andreas K. Huettel" <dilfridge@g.o>
Re: [gentoo-dev] [PATCH v2] fortran-2.eclass: support EAPI 7 Andrew Savchenko <bircoph@g.o>