summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-03-12 11:49:49 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-03-12 16:12:50 +0100
commit66f31e16e2730c183a49a881ebf0da67d283f4de (patch)
tree96223257740da6a4ae566e8717c6f727ff1e0fee /eclass
parentapp-dicts/freedict-ita-eng: EAPI-7 bump (diff)
downloadgentoo-66f31e16e2730c183a49a881ebf0da67d283f4de.tar.gz
gentoo-66f31e16e2730c183a49a881ebf0da67d283f4de.tar.bz2
gentoo-66f31e16e2730c183a49a881ebf0da67d283f4de.zip
freedict.eclass: Drop EAPI-6 support
Bug: https://bugs.gentoo.org/770265 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freedict.eclass27
1 files changed, 6 insertions, 21 deletions
diff --git a/eclass/freedict.eclass b/eclass/freedict.eclass
index cded485b5a47..2af79666aa20 100644
--- a/eclass/freedict.eclass
+++ b/eclass/freedict.eclass
@@ -6,40 +6,25 @@
# maintainer-needed@gentoo.org
# @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"