diff options
author | Andrew Savchenko <bircoph@gentoo.org> | 2018-11-17 14:25:27 +0300 |
---|---|---|
committer | Andrew Savchenko <bircoph@gentoo.org> | 2018-11-17 14:25:27 +0300 |
commit | a03929258eb1a92edaa87e6dd32ec07473571707 (patch) | |
tree | e88130afa1836122a18d00a84551609ec5c47c20 /eclass | |
parent | sys-apps/portage-mgorny: Bump to 2.3.51.1 (diff) | |
download | gentoo-a03929258eb1a92edaa87e6dd32ec07473571707.tar.gz gentoo-a03929258eb1a92edaa87e6dd32ec07473571707.tar.bz2 gentoo-a03929258eb1a92edaa87e6dd32ec07473571707.zip |
fortran-2.eclass: bump to EAPI 7
Add EAPI 7 support.
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/fortran-2.eclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index 820cbbcb49bd..4b405ee5c188 100644 --- a/eclass/fortran-2.eclass +++ b/eclass/fortran-2.eclass @@ -8,7 +8,7 @@ # @AUTHOR: # Author Justin Lecher <jlec@gentoo.org> # Test functions provided by Sebastien Fabbro and Kacper Kowalik -# @SUPPORTED_EAPIS: 4 5 6 +# @SUPPORTED_EAPIS: 4 5 6 7 # @BLURB: Simplify fortran compiler management # @DESCRIPTION: # If you need a fortran compiler, then you should be inheriting this eclass. @@ -27,13 +27,16 @@ # # FORTRAN_NEED_OPENMP=1 -inherit eutils toolchain-funcs - +inherit toolchain-funcs case ${EAPI:-0} in - 4|5|6) EXPORT_FUNCTIONS pkg_setup ;; + # not used in the eclass, but left for backward compatibility with legacy users + 4|5|6) inherit eutils ;; + 7) ;; *) die "EAPI=${EAPI} is not supported" ;; esac +EXPORT_FUNCTIONS pkg_setup + if [[ ! ${_FORTRAN_2_CLASS} ]]; then # @ECLASS-VARIABLE: FORTRAN_NEED_OPENMP |