Skip to content

Commit

Permalink
fortran-2.eclass: bump to EAPI 7
Browse files Browse the repository at this point in the history
Add EAPI 7 support.

Signed-off-by: Andrew Savchenko <[email protected]>
  • Loading branch information
bircoph committed Nov 17, 2018
1 parent 009a6e4 commit a039292
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eclass/fortran-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# @AUTHOR:
# Author Justin Lecher <[email protected]>
# 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.
Expand All @@ -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
Expand Down

0 comments on commit a039292

Please sign in to comment.