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 143B3138330 for ; Sat, 6 Jan 2018 17:13:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FAF1E08BD; Sat, 6 Jan 2018 17:13:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 61BD1E08BD for ; Sat, 6 Jan 2018 17:13:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D89E7335C07 for ; Sat, 6 Jan 2018 17:13:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 722531A1 for ; Sat, 6 Jan 2018 17:13:51 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1515258770.bdcba22394cc15d3ee2a8b24cfa94e6d9e84ef2f.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/kicad/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/kicad/kicad-4.0.4.ebuild X-VCS-Directories: sci-electronics/kicad/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: bdcba22394cc15d3ee2a8b24cfa94e6d9e84ef2f X-VCS-Branch: master Date: Sat, 6 Jan 2018 17:13:51 +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: 380c4452-c2de-431d-baf9-cc731c378010 X-Archives-Hash: 55412207138368120787da0e6b5944b2 commit: bdcba22394cc15d3ee2a8b24cfa94e6d9e84ef2f Author: Ulrich Müller gentoo org> AuthorDate: Sat Jan 6 17:11:53 2018 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Jan 6 17:12:50 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdcba223 sci-electronics/kicad: Backport L10N migration also to stable ebuild. Package-Manager: Portage-2.3.19, Repoman-2.3.6 sci-electronics/kicad/kicad-4.0.4.ebuild | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sci-electronics/kicad/kicad-4.0.4.ebuild b/sci-electronics/kicad/kicad-4.0.4.ebuild index 0a61360b486..6c75dc7aba9 100644 --- a/sci-electronics/kicad/kicad-4.0.4.ebuild +++ b/sci-electronics/kicad/kicad-4.0.4.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=5 @@ -26,12 +26,11 @@ LICENSE="GPL-2+ GPL-3+ Boost-1.0" SLOT="0" KEYWORDS="amd64 x86" IUSE="debug doc examples github i18n libressl minimal +python" -LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" +LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh-CN" for lang in ${LANGS} ; do - IUSE="${IUSE} linguas_${lang}" + IUSE="${IUSE} l10n_${lang}" done unset lang -unset LANGS REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} )" @@ -104,10 +103,11 @@ src_prepare() { ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die # Remove unused languages. Project generates only languages specified in the # file in LINGUAS in the subproject folder. By default all languages are added - # so we sed out the unused ones based on the user linguas_* settings. + # so we sed out the unused ones based on the user l10n_* settings. local lang for lang in ${LANGS}; do - if ! use linguas_${lang}; then + if ! use l10n_${lang}; then + lang="${lang//-/_}" sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die fi done