commit:     64f55eacb82928c647e00ef767c909d88a94bbd8
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 01:53:32 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 01:53:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64f55eac

chromium-2.eclass: add special handling for sr-ME

Bug: https://bugs.gentoo.org/583762

 eclass/chromium-2.eclass | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/eclass/chromium-2.eclass b/eclass/chromium-2.eclass
index eeae750..e4170df 100644
--- a/eclass/chromium-2.eclass
+++ b/eclass/chromium-2.eclass
@@ -71,7 +71,10 @@ chromium_remove_language_paks() {
        # Look for missing pak files.
        for lang in ${CHROMIUM_LANGS}; do
                if [[ ! -e ${lang}.pak ]]; then
-                       eqawarn "L10N warning: no .pak file for ${lang} 
(${lang}.pak not found)"
+                       # https://bugs.gentoo.org/583762
+                       if [[ ${lang} != sr-ME || ! -e me.pak  ]]; then
+                               eqawarn "L10N warning: no .pak file for ${lang} 
(${lang}.pak not found)"
+                       fi
                fi
        done
 
@@ -86,6 +89,17 @@ chromium_remove_language_paks() {
                if [[ ${lang} == en-US ]]; then
                        continue
                fi
+
+               # https://bugs.gentoo.org/583762
+               if [[ ${lang} == me ]]; then
+                       if ! has sr-ME ${CHROMIUM_LANGS}; then
+                               eqawarn "L10N warning: no sr-ME in LANGS"
+                       elif ! use l10n_sr-ME; then
+                               rm "${pak}" || die
+                       fi
+                       continue
+               fi
+
                if ! has ${lang} ${CHROMIUM_LANGS}; then
                        eqawarn "L10N warning: no ${lang} in LANGS"
                        continue

Reply via email to