Created attachment 357600 [details, diff] wesnoth-1.10.6.ebuild.patch wesnoth has been translated to many languages, and by default all the translations are installed. As locale are generated by the build system, it slow downs a bit the installation of the ebuild. It also wastes some space on hard drive (~90M less when installing only two locales I need (fr,vi)). The joined patch also move the locale directory from ${GAMES_DATADIR}/wesnoth/locale to ${GAMES_DATADIR_BASE}/locale. I don't know if it's suitable.
I don't like having useflags for every single locale in every single package. You can check directly against the LINGUAS env variable. Keep in mind to simulate proper gettext behavior, as in: unset LINGUAS => install all linguas LINGUAS="" => install none LINGUAS="de en" => install de and en
Created attachment 357718 [details, diff] wesnoth-1.10.6.ebuild.patch 1) linguas_* use flag allowed more visibility for the translation effort. I'm may be wrong but I assume catalan locuter would usually set ca_ES to their LINGUAS env var, but rarely ca_ES@valencia (even they speak the last language). 2) I set those use flags so portage filters the LINGUAS variables instead of the ebuild itself.
1.10.7 respects LINGUAS