public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/
Date: Fri, 20 May 2016 15:41:08 +0000 (UTC)	[thread overview]
Message-ID: <1463758853.7b458ea982b270ec5a50b2923a4ff9c58ab6fbc0.vapier@gentoo> (raw)

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() {


             reply	other threads:[~2016-05-20 15:41 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-20 15:41 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-25 17:31 [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/ Arthur Zamarin
2024-05-23 21:57 Sam James
2024-05-23 21:56 Sam James
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-03-29 15:38 Ben Kohler
2024-02-28 16:25 Ben Kohler
2024-02-28 16:07 Ben Kohler
2024-01-22  8:36 Sam James
2023-11-03 12:23 Ben Kohler
2023-09-02  0:23 Ben Kohler
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:26 Sam James
2023-05-12 16:26 Sam James
2023-05-12 16:26 Sam James
2023-03-01 15:08 Ben Kohler
2022-02-19 13:14 Ben Kohler
2022-02-06 12:59 Ben Kohler
2022-01-18 22:16 Sam James
2022-01-14 15:23 Arthur Zamarin
2022-01-14 13:46 Jakov Smolić
2022-01-14 13:46 Jakov Smolić
2022-01-14 13:22 Arthur Zamarin
2022-01-14 13:22 Arthur Zamarin
2022-01-14 13:22 Arthur Zamarin
2021-12-25  0:02 Mike Gilbert
2021-12-07 20:29 Sam James
2021-11-28 20:08 Mike Gilbert
2021-08-10  0:02 Marek Szuba
2021-07-13 13:44 Ben Kohler
2021-07-04 14:03 Ulrich Müller
2021-05-29 15:33 Sam James
2021-05-28 12:04 Agostino Sarubbo
2021-05-28 12:03 Agostino Sarubbo
2021-05-27 19:18 Sam James
2021-05-27 19:14 Sam James
2021-05-18 15:18 Ben Kohler
2021-05-17  8:53 Agostino Sarubbo
2021-05-17  7:49 Agostino Sarubbo
2021-05-17  3:19 Sam James
2021-05-17  3:04 Sam James
2021-05-17  2:37 Sam James
2021-05-16 23:41 Sam James
2021-05-16 23:41 Sam James
2021-04-27  8:07 David Seifert
2021-04-26 17:48 Ben Kohler
2021-04-21 14:13 Guilherme Amadio
2021-04-03 15:44 Sam James
2021-03-23 15:22 Ben Kohler
2021-03-23 15:22 Ben Kohler
2021-03-23 15:22 Ben Kohler
2020-08-19 20:06 Sam James
2020-06-06 19:31 Mart Raudsepp
2017-11-06 21:20 Sergei Trofimovich
2017-09-30 23:44 Thomas Deutschmann
2017-09-26 22:37 Manuel Rüger
2017-09-22 19:40 Sergei Trofimovich
2017-09-09 18:45 Sergei Trofimovich
2017-09-09 10:27 Markus Meier
2017-09-04  7:30 Tobias Klausmann
2017-09-01 22:36 Sergei Trofimovich
2017-09-01  2:22 Tim Harder
2017-03-15  6:02 Mike Frysinger
2017-03-15  5:42 Mike Frysinger
2016-05-20 15:45 Mike Frysinger
2016-05-15 20:40 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463758853.7b458ea982b270ec5a50b2923a4ff9c58ab6fbc0.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox