commit: 66f31e16e2730c183a49a881ebf0da67d283f4de Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Mar 12 10:49:49 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Mar 12 15:12:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66f31e16
freedict.eclass: Drop EAPI-6 support Bug: https://bugs.gentoo.org/770265 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> eclass/freedict.eclass | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/eclass/freedict.eclass b/eclass/freedict.eclass index cded485b5a4..2af79666aa2 100644 --- a/eclass/freedict.eclass +++ b/eclass/freedict.eclass @@ -6,40 +6,25 @@ # [email protected] # @AUTHOR: # Original author: Seemant Kulleen -# @SUPPORTED_EAPIS: 6 7 +# @SUPPORTED_EAPIS: 7 # @BLURB: Ease the installation of freedict translation dictionaries # @DESCRIPTION: # This eclass exists to ease the installation of freedict translation -# dictionaries. The only variables which need to be defined in the actual -# ebuilds are FORLANG and TOLANG for the source and target languages, -# respectively. +# dictionaries. # @ECLASS-VARIABLE: FREEDICT_P # @DESCRIPTION: # Strips PN of 'freedict' prefix, to be used in SRC_URI and doins FREEDICT_P=${PN/freedict-/} -# @ECLASS-VARIABLE: FORLANG -# @DEFAULT_UNSET -# @DESCRIPTION: -# DEPRECATED: Cleanup after EAPI-7 removal. - -# @ECLASS-VARIABLE: TOLANG -# @DEFAULT_UNSET -# @DESCRIPTION: -# DEPRECATED: Cleanup after EAPI-7 removal. - case ${EAPI:-0} in - 6) - DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}" - ;; - 7) - [[ ${FORLANG} ]] && die "FORLANG is banned, set DESCRIPTION instead" - [[ ${TOLANG} ]] && die "TOLANG is banned, set DESCRIPTION instead" - ;; + 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" + HOMEPAGE="http://freedict.sourceforge.net/en/" SRC_URI="http://freedict.sourceforge.net/download/linux/${FREEDICT_P}.tar.gz"
