diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-09 01:25:16 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-09 10:51:43 +0100 |
commit | 8ad404c4f1e7dc104e76442867337416f15adf16 (patch) | |
tree | c963872ac3a4a3622628636c6ced2d51fe65e897 /eclass | |
parent | kde5.eclass: Drop KDE_TESTPATTERN (diff) | |
download | gentoo-8ad404c4f1e7dc104e76442867337416f15adf16.tar.gz gentoo-8ad404c4f1e7dc104e76442867337416f15adf16.tar.bz2 gentoo-8ad404c4f1e7dc104e76442867337416f15adf16.zip |
kde5-functions.eclass: Ban get_kde_version, kde_l10n2lingua in EAPI-7
* get_kde_version was never used and is broken for Jan-Sep kde-apps releases
* kde_l10n2lingua is not used since kde-l10n and kde4-l10n packages are gone
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde5-functions.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index c6cdc4ba9d0e..28446ed82f19 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: kde5-functions.eclass @@ -285,6 +285,7 @@ add_qt_dep() { # If the version equals 9999, "live" is returned. # If no version is specified, ${PV} is used. get_kde_version() { + [[ ${EAPI} != 6 ]] && die "${FUNCNAME} is banned in EAPI 7 and later" local ver=${1:-${PV}} local major=$(ver_cut 1 ${ver}) local minor=$(ver_cut 2 ${ver}) @@ -303,6 +304,7 @@ get_kde_version() { # Output KDE lingua flag name(s) (without prefix(es)) appropriate for # given l10n(s). kde_l10n2lingua() { + [[ ${EAPI} != 6 ]] && die "${FUNCNAME} is banned in EAPI 7 and later" local l for l; do case ${l} in |