From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-882521-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0F169138262 for <garchives@archives.gentoo.org>; Fri, 20 May 2016 15:41:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68F4D141B8; Fri, 20 May 2016 15:41:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08419141B8 for <gentoo-commits@lists.gentoo.org>; Fri, 20 May 2016 15:41:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2DC95340A2B for <gentoo-commits@lists.gentoo.org>; Fri, 20 May 2016 15:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AE5A334 for <gentoo-commits@lists.gentoo.org>; Fri, 20 May 2016 15:41:08 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <1463758853.7b458ea982b270ec5a50b2923a4ff9c58ab6fbc0.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/lshw/lshw-02.17b-r2.ebuild X-VCS-Directories: sys-apps/lshw/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 7b458ea982b270ec5a50b2923a4ff9c58ab6fbc0 X-VCS-Branch: master Date: Fri, 20 May 2016 15:41:08 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8477abf3-5a69-4c0c-8890-15120b46d55d X-Archives-Hash: 1ab49536778ac794a1414f52812395e0 commit: 7b458ea982b270ec5a50b2923a4ff9c58ab6fbc0 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Fri May 20 15:38:22 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Fri May 20 15:40:53 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b458ea9 sys-apps/lshw: switch to l10n eclass to handle locales sys-apps/lshw/lshw-02.17b-r2.ebuild | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/sys-apps/lshw/lshw-02.17b-r2.ebuild b/sys-apps/lshw/lshw-02.17b-r2.ebuild index 5d7131c..bf6c999 100644 --- a/sys-apps/lshw/lshw-02.17b-r2.ebuild +++ b/sys-apps/lshw/lshw-02.17b-r2.ebuild @@ -3,7 +3,10 @@ # $Id$ EAPI=5 -inherit flag-o-matic eutils toolchain-funcs + +PLOCALES='fr' + +inherit flag-o-matic eutils toolchain-funcs l10n MAJ_PV=${PV:0:${#PV}-1} MIN_PVE=${PV:0-1} @@ -36,19 +39,11 @@ src_prepare() { "${FILESDIR}"/${P}-gentoo.patch \ "${FILESDIR}"/${P}-fat.patch \ "${FILESDIR}"/${P}-musl.patch - # correct gettext behavior - if [[ -n "${LINGUAS+x}" ]] ; then - local langs - for i in $(cd src/po ; echo *.po | sed 's/\.po//') ; do - if has ${i} ${LINGUAS} ; then - langs+=" ${i}" - fi - done - sed -i \ - -e "/^LANGUAGES =/ s/=.*/= $langs/" \ - src/po/Makefile || die - fi + l10n_find_plocales_changes "src/po" "" ".po" || die + sed -i \ + -e "/^LANGUAGES =/ s/=.*/= $(l10n_get_locales)/" \ + src/po/Makefile || die } src_compile() {