fortran-2.eclass: bump to EAPI 7
authorAndrew Savchenko <bircoph@gentoo.org>
Sat, 17 Nov 2018 11:25:27 +0000 (14:25 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sat, 17 Nov 2018 11:25:27 +0000 (14:25 +0300)
Add EAPI 7 support.

Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
eclass/fortran-2.eclass

index 820cbbcb49bdaec45bd614580a5e4bfb0d8b3fdd..4b405ee5c188c78b92e3cecea2653fa07a24830d 100644 (file)
@@ -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.
 #
 # 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