summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2018-01-07 09:07:30 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2018-01-07 09:08:07 +0100
commit8378826dd5b2a5bc9d1a07dc9fb59534b2279a44 (patch)
treeebfca41103fb1d05d768ea5dda35040fea80db0c /media-gfx/valentina
parentsci-geosciences/viking: fix QA issues, bug 643332 (diff)
downloadgentoo-8378826dd5b2a5bc9d1a07dc9fb59534b2279a44.tar.gz
gentoo-8378826dd5b2a5bc9d1a07dc9fb59534b2279a44.tar.bz2
gentoo-8378826dd5b2a5bc9d1a07dc9fb59534b2279a44.zip
media-gfx/valentina: updated from linguas to l10n
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'media-gfx/valentina')
-rw-r--r--media-gfx/valentina/valentina-0.5.0-r2.ebuild63
-rw-r--r--media-gfx/valentina/valentina-9999.ebuild62
2 files changed, 113 insertions, 12 deletions
diff --git a/media-gfx/valentina/valentina-0.5.0-r2.ebuild b/media-gfx/valentina/valentina-0.5.0-r2.ebuild
index 3ba76fa3cd6b..9b5a7f5ea11e 100644
--- a/media-gfx/valentina/valentina-0.5.0-r2.ebuild
+++ b/media-gfx/valentina/valentina-0.5.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -16,11 +16,10 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"
-# en_IN not supported in Gentoo so not added here
-LANGS="cs_CZ de_DE el_GR en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL pt_BR ro_RO ru_RU uk_UA zh_CN"
+LANGS="cs de el en en es fi fr he id it nl pt-BR ro ru uk zh-CN"
for LANG in ${LANGS}; do
- IUSE="${IUSE} linguas_${LANG}"
+ IUSE="${IUSE} l10n_${LANG}"
done
CDEPEND="
@@ -48,10 +47,62 @@ src_prepare() {
src_configure() {
local locales=""
+ local locale
for LANG in ${LANGS}; do
- if use linguas_${LANG}; then
- locales="${locales} ${LANG}"
+ if use l10n_${LANG}; then
+ case ${LANG} in
+ "cs")
+ locale="cs_CZ"
+ ;;
+ "de")
+ locale="de_DE"
+ ;;
+ "el")
+ locale="el_GR"
+ ;;
+ "en")
+ locale="en_CA en_IN en_US"
+ ;;
+ "es")
+ locale="es_ES"
+ ;;
+ "fi")
+ locale="fi_FI"
+ ;;
+ "fr")
+ locale="fr_FR"
+ ;;
+ "he")
+ locale="he_IL"
+ ;;
+ "id")
+ locale="id_ID"
+ ;;
+ "it")
+ locale="it_IT"
+ ;;
+ "nl")
+ locale="nl_NL"
+ ;;
+ "pt-BR")
+ locale="pt_BR"
+ ;;
+ "ro")
+ locale="ro_RO"
+ ;;
+ "ru")
+ locale="ru_RU"
+ ;;
+ "uk")
+ locale="uk_UA"
+ ;;
+ "zh-CN")
+ locale="zh_CN"
+ ;;
+ esac
+
+ locales="${locales} ${locale}"
fi
done
diff --git a/media-gfx/valentina/valentina-9999.ebuild b/media-gfx/valentina/valentina-9999.ebuild
index 3c119be7617c..7e393108cc1a 100644
--- a/media-gfx/valentina/valentina-9999.ebuild
+++ b/media-gfx/valentina/valentina-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -15,11 +15,10 @@ SLOT="0"
KEYWORDS=""
IUSE="gnome"
-# en_IN not supported in Gentoo so not added here
-LANGS="cs_CZ de_DE el_GR en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL pt_BR ro_RO ru_RU uk_UA zh_CN"
+LANGS="cs de el en en es fi fr he id it nl pt-BR ro ru uk zh-CN"
for LANG in ${LANGS}; do
- IUSE="${IUSE} linguas_${LANG}"
+ IUSE="${IUSE} l10n_${LANG}"
done
CDEPEND="
@@ -39,8 +38,59 @@ src_configure() {
local locales=""
for LANG in ${LANGS}; do
- if use linguas_${LANG}; then
- locales="${locales} ${LANG}"
+ if use l10n_${LANG}; then
+ case ${LANG} in
+ "cs")
+ locale="cs_CZ"
+ ;;
+ "de")
+ locale="de_DE"
+ ;;
+ "el")
+ locale="el_GR"
+ ;;
+ "en")
+ locale="en_CA en_IN en_US"
+ ;;
+ "es")
+ locale="es_ES"
+ ;;
+ "fi")
+ locale="fi_FI"
+ ;;
+ "fr")
+ locale="fr_FR"
+ ;;
+ "he")
+ locale="he_IL"
+ ;;
+ "id")
+ locale="id_ID"
+ ;;
+ "it")
+ locale="it_IT"
+ ;;
+ "nl")
+ locale="nl_NL"
+ ;;
+ "pt-BR")
+ locale="pt_BR"
+ ;;
+ "ro")
+ locale="ro_RO"
+ ;;
+ "ru")
+ locale="ru_RU"
+ ;;
+ "uk")
+ locale="uk_UA"
+ ;;
+ "zh-CN")
+ locale="zh_CN"
+ ;;
+ esac
+
+ locales="${locales} ${locale}"
fi
done