Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/tornado/
Date: Wed, 03 Nov 2021 04:08:02
Message-Id: 1635912417.f22ee91e18ac1b65eec983dd3ea49b48c85d3b19.ionen@gentoo
1 commit: f22ee91e18ac1b65eec983dd3ea49b48c85d3b19
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 3 03:58:11 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 3 04:06:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22ee91e
7
8 games-strategy/tornado: use domo
9
10 Hadn't realized there was an ebuild helper to install .mo files.
11 This doesn't make this prettier but feels more proper.
12
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 games-strategy/tornado/tornado-1.4-r3.ebuild | 8 +++-----
16 1 file changed, 3 insertions(+), 5 deletions(-)
17
18 diff --git a/games-strategy/tornado/tornado-1.4-r3.ebuild b/games-strategy/tornado/tornado-1.4-r3.ebuild
19 index 290d8ba7825..1fc5666fe72 100644
20 --- a/games-strategy/tornado/tornado-1.4-r3.ebuild
21 +++ b/games-strategy/tornado/tornado-1.4-r3.ebuild
22 @@ -50,12 +50,10 @@ src_install() {
23 local PLOCALES="de fr it nl no ru"
24 plocale_for_each_locale tornado_man
25
26 - tornado_loc() {
27 - insinto /usr/share/locale/${1}/LC_MESSAGES
28 - newins po/${1}.mo ${PN}.mo
29 - }
30 PLOCALES+=" es pt"
31 - plocale_for_each_locale tornado_loc
32 + local mo=($(plocale_get_locales))
33 + mo=("${mo[@]/%/.mo}")
34 + (( ${#mo[@]} )) && domo "${mo[@]/#/po/}"
35
36 insinto /var/games
37 doins ${PN}.scores