From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A792C138330 for ; Sun, 7 Jan 2018 08:09:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5541E07F1; Sun, 7 Jan 2018 08:09:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8510CE07F1 for ; Sun, 7 Jan 2018 08:09:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 34D9D335D94 for ; Sun, 7 Jan 2018 08:09:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8317147 for ; Sun, 7 Jan 2018 08:09:17 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1515312487.8378826dd5b2a5bc9d1a07dc9fb59534b2279a44.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/valentina/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/valentina/valentina-0.5.0-r2.ebuild media-gfx/valentina/valentina-9999.ebuild X-VCS-Directories: media-gfx/valentina/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 8378826dd5b2a5bc9d1a07dc9fb59534b2279a44 X-VCS-Branch: master Date: Sun, 7 Jan 2018 08:09:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ff060b83-1d32-455a-96eb-396d3322c576 X-Archives-Hash: 1ecd4b04e8fa1762ceea9a5b9ad263fa commit: 8378826dd5b2a5bc9d1a07dc9fb59534b2279a44 Author: Miroslav Šulc gentoo org> AuthorDate: Sun Jan 7 08:07:30 2018 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sun Jan 7 08:08:07 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8378826d media-gfx/valentina: updated from linguas to l10n Package-Manager: Portage-2.3.19, Repoman-2.3.6 media-gfx/valentina/valentina-0.5.0-r2.ebuild | 63 ++++++++++++++++++++++++--- media-gfx/valentina/valentina-9999.ebuild | 62 +++++++++++++++++++++++--- 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 3ba76fa3cd6..9b5a7f5ea11 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 3c119be7617..7e393108cc1 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