summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-11-02 23:58:11 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-11-03 00:06:57 -0400
commitf22ee91e18ac1b65eec983dd3ea49b48c85d3b19 (patch)
tree553a7dac6124f5e3441e0e7744606f88217a2fb4 /games-strategy
parentwww-client/firefox: add some more implicit deps (diff)
downloadgentoo-f22ee91e18ac1b65eec983dd3ea49b48c85d3b19.tar.gz
gentoo-f22ee91e18ac1b65eec983dd3ea49b48c85d3b19.tar.bz2
gentoo-f22ee91e18ac1b65eec983dd3ea49b48c85d3b19.zip
games-strategy/tornado: use domo
Hadn't realized there was an ebuild helper to install .mo files. This doesn't make this prettier but feels more proper. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/tornado/tornado-1.4-r3.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/games-strategy/tornado/tornado-1.4-r3.ebuild b/games-strategy/tornado/tornado-1.4-r3.ebuild
index 290d8ba78256..1fc5666fe720 100644
--- a/games-strategy/tornado/tornado-1.4-r3.ebuild
+++ b/games-strategy/tornado/tornado-1.4-r3.ebuild
@@ -50,12 +50,10 @@ src_install() {
local PLOCALES="de fr it nl no ru"
plocale_for_each_locale tornado_man
- tornado_loc() {
- insinto /usr/share/locale/${1}/LC_MESSAGES
- newins po/${1}.mo ${PN}.mo
- }
PLOCALES+=" es pt"
- plocale_for_each_locale tornado_loc
+ local mo=($(plocale_get_locales))
+ mo=("${mo[@]/%/.mo}")
+ (( ${#mo[@]} )) && domo "${mo[@]/#/po/}"
insinto /var/games
doins ${PN}.scores