commit:     f22ee91e18ac1b65eec983dd3ea49b48c85d3b19
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  3 03:58:11 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Nov  3 04:06:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22ee91e

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 <AT> gentoo.org>

 games-strategy/tornado/tornado-1.4-r3.ebuild | 8 +++-----
 1 file 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 290d8ba7825..1fc5666fe72 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

Reply via email to