Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483316 - =games-strategy/wesnoth-1.10.6 - Add LINGUAS.
Summary: =games-strategy/wesnoth-1.10.6 - Add LINGUAS.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-02 01:02 UTC by Samuel Bauer
Modified: 2013-09-12 21:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
wesnoth-1.10.6.ebuild.patch (wesnoth-1.10.6.ebuild.patch,1.47 KB, patch)
2013-09-02 01:02 UTC, Samuel Bauer
Details | Diff
wesnoth-1.10.6.ebuild.patch (wesnoth-1.10.6.ebuild-2.patch,1.23 KB, patch)
2013-09-02 20:30 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2013-09-02 01:02:17 UTC
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.
Comment 1 Julian Ospald 2013-09-02 12:19:26 UTC
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
Comment 2 Samuel Bauer 2013-09-02 20:30:28 UTC
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.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2013-09-12 21:06:44 UTC
1.10.7 respects LINGUAS