diff options
author | David Seifert <soap@gentoo.org> | 2023-03-17 23:04:31 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-03-17 23:04:31 +0100 |
commit | 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f (patch) | |
tree | c89a0929ca3e7cc95c737085614214e89450c999 /eclass/freedict.eclass | |
parent | xdg.eclass: remove EAPI 5 (diff) | |
download | gentoo-2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.tar.gz gentoo-2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.tar.bz2 gentoo-2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.zip |
eclass: standardize prologue/epilogue
Closes: https://github.com/gentoo/gentoo/pull/30061
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/freedict.eclass')
-rw-r--r-- | eclass/freedict.eclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/freedict.eclass b/eclass/freedict.eclass index f38ce93edc82..7a49a5f19778 100644 --- a/eclass/freedict.eclass +++ b/eclass/freedict.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: freedict.eclass @@ -12,6 +12,11 @@ # This eclass exists to ease the installation of freedict translation # dictionaries. +case ${EAPI} in + 7) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_FREEDICT_ECLASS} ]]; then _FREEDICT_ECLASS=1 @@ -20,11 +25,6 @@ _FREEDICT_ECLASS=1 # Strips PN of 'freedict' prefix, to be used in SRC_URI and doins FREEDICT_P=${PN/freedict-/} -case ${EAPI:-0} in - 7) ;; - *) die "${ECLASS}.eclass is banned in EAPI=${EAPI}" ;; -esac - [[ ${FORLANG} ]] && die "FORLANG is banned, set DESCRIPTION instead" [[ ${TOLANG} ]] && die "TOLANG is banned, set DESCRIPTION instead" @@ -47,6 +47,6 @@ freedict_src_install() { doins ${FREEDICT_P}.index } -EXPORT_FUNCTIONS src_install - fi + +EXPORT_FUNCTIONS src_install |