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 2AB53138330 for ; Tue, 9 Jan 2018 02:03:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61C63E097C; Tue, 9 Jan 2018 02:00:21 +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 3C184E0A8D for ; Tue, 9 Jan 2018 02:00:21 +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 E665134116E for ; Mon, 8 Jan 2018 18:11:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A88FE1AB for ; Mon, 8 Jan 2018 18:11:20 +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: <1515435071.b6c35038523e72d1dc5e052dba06448370271aae.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/kapow/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/kapow/kapow-1.5.5.ebuild X-VCS-Directories: x11-misc/kapow/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: b6c35038523e72d1dc5e052dba06448370271aae X-VCS-Branch: master Date: Mon, 8 Jan 2018 18:11:20 +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: 577bab91-038f-4fdb-a4eb-bd7433b8b86a X-Archives-Hash: 023ef8962b3036acd23a0a412f879e30 commit: b6c35038523e72d1dc5e052dba06448370271aae Author: Ulrich Müller gentoo org> AuthorDate: Mon Jan 8 18:00:35 2018 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Jan 8 18:11:11 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c35038 x11-misc/kapow: Migrate from LINGUAS to L10N. Package-Manager: Portage-2.3.19, Repoman-2.3.6 x11-misc/kapow/kapow-1.5.5.ebuild | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/x11-misc/kapow/kapow-1.5.5.ebuild b/x11-misc/kapow/kapow-1.5.5.ebuild index 9447fce7694..00138613950 100644 --- a/x11-misc/kapow/kapow-1.5.5.ebuild +++ b/x11-misc/kapow/kapow-1.5.5.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 @@ -23,11 +23,11 @@ DEPEND=" ${RDEPEND} dev-qt/linguist-tools:5 " -K_LINGUAS=" +K_LANGS=" ar bg cs da de el en es fr it lt nl no pl pt_BR ro ru sv tr uk " -for K_LINGUA in ${K_LINGUAS}; do - IUSE+=" linguas_${K_LINGUA}" +for K_LANG in ${K_LANGS}; do + IUSE+=" l10n_${K_LANG/_/-}" done DOCS=( ChangeLog README ) @@ -35,20 +35,18 @@ src_prepare() { default count() { echo ${#}; } - local lingua_count=$(count ${K_LINGUAS}) + local lang_count=$(count ${K_LANGS}) local locale_count=$(count translations/${PN}_*.ts) - [[ ${lingua_count} = ${locale_count} ]] \ - || die "Number of LINGUAS does not match number of locales" + [[ ${lang_count} = ${locale_count} ]] \ + || die "Number of LANGS does not match number of locales" unset count - local lingua - if [[ -n "${LINGUAS}" ]]; then - for lingua in ${K_LINGUAS}; do - if ! use linguas_${lingua}; then - rm translations/${PN}_${lingua}.* || die - fi - done - fi + local lang + for lang in ${K_LANGS}; do + if ! use l10n_${lang/_/-}; then + rm translations/${PN}_${lang}.* || die + fi + done } src_configure() {