diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-07-13 23:22:46 +0200 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2016-07-14 08:54:11 +0200 |
commit | 42156c464ef577cd8981ea2536d4900851bc5e55 (patch) | |
tree | 5adb79bdddfa1400236a79d7f6440e308d7a1870 /eclass/kde5-functions.eclass | |
parent | dev-ruby/mime-types: add 3.1 (diff) | |
download | gentoo-42156c464ef577cd8981ea2536d4900851bc5e55.tar.gz gentoo-42156c464ef577cd8981ea2536d4900851bc5e55.tar.bz2 gentoo-42156c464ef577cd8981ea2536d4900851bc5e55.zip |
kde5-functions.eclass: Add KDEBASE=kdel10n and kde_l10n2lingua()
Signed-off-by: Johannes Huber <johu@gentoo.org>
Diffstat (limited to 'eclass/kde5-functions.eclass')
-rw-r--r-- | eclass/kde5-functions.eclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index a03c2ad29fd4..b8f9c809be42 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -49,6 +49,8 @@ esac # kdevelop ebuild. if [[ ${KMNAME-${PN}} = kdevelop ]]; then KDEBASE=kdevelop +elif [[ ${KMNAME} = kde-l10n || ${PN} = kde-l10n ]]; then + KDEBASE=kdel10n fi debug-print "${ECLASS}: ${KDEBASE} ebuild recognized" @@ -278,6 +280,26 @@ get_kde_version() { fi } +# @FUNCTION: kde_l10n2lingua +# @USAGE: <l10n>... +# @INTERNAL +# @DESCRIPTION: +# Output KDE lingua flag name(s) (without prefix(es)) appropriate for +# given l10n(s). +kde_l10n2lingua() { + local l + for l; do + case ${l} in + ca-valencia) echo ca@valencia;; + sr-ijekavsk) echo sr@ijekavian;; + sr-Latn-ijekavsk) echo sr@ijekavianlatin;; + sr-Latn) echo sr@latin;; + uz-Cyrl) echo uz@cyrillic;; + *) echo "${l/-/_}";; + esac + done +} + # @FUNCTION: punt_bogus_dep # @USAGE: <prefix> <dependency> # @DESCRIPTION: |