diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-18 00:29:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-18 00:29:05 +0000 |
commit | 467e2131896a3030032cd5b0fab2094a045bf9d0 (patch) | |
tree | 534578ca7ef61b3eb30fee861db78c0ae58e2fa6 /eclass/fortran-2.eclass | |
parent | 1f254b1ee917690b4f8f7738fdcfc295ee304ff7 (diff) |
gentoo auto-resync : 18:03:2023 - 00:29:05
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r-- | eclass/fortran-2.eclass | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index e26dd700f7cf..72b3d2d1857b 100644 --- a/eclass/fortran-2.eclass +++ b/eclass/fortran-2.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: fortran-2.eclass @@ -26,18 +26,15 @@ # # FORTRAN_NEED_OPENMP=1 -inherit toolchain-funcs - -case ${EAPI:-0} in - # not used in the eclass, but left for backward compatibility with legacy users - 5|6) inherit eutils ;; - 7|8) ;; - *) die "EAPI=${EAPI} is not supported" ;; +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -EXPORT_FUNCTIONS pkg_setup +if [[ -z ${_FORTRAN_2_ECLASS} ]]; then +_FORTRAN_2_ECLASS=1 -if [[ ! ${_FORTRAN_2_CLASS} ]]; then +inherit toolchain-funcs # @ECLASS_VARIABLE: FORTRAN_NEED_OPENMP # @DESCRIPTION: @@ -293,5 +290,6 @@ fortran-2_pkg_setup() { fi } -_FORTRAN_2_ECLASS=1 fi + +EXPORT_FUNCTIONS pkg_setup |