On Monday 30 January 2006 06:17, Diego 'Flameeyes' Pettenò wrote:
> Defining LINGUAS variable would be useful to allow people to know whether
> they are going to have special support for their language in a package, but
> it would also clutter the output quite a bit.
Okay then.. I'm still looking locally how it appears, and I'm thinking it's 
really useful to have LINGUAS told in emerge -pv and -av. The reason is 
trivial: if someone sets LINGUAS for something, and then does not get that 
language supported, it might wonder why; by stating the accepted LINGUAS the 
problem is solved.

Also, it would allow to know when a new language support is available.

This makes version bumps a bit more complex, as just renaming the ebuild will 
ignore changes in supported LINGUAS, but for most cases, it's needed anyway 
(I think of xdtv for example). For KDE-based stuff, the LINGUAS handling is 
simple to recalculate: on the new tarball (that one should extract anyway), 
just do ls po | grep -v Makefile | xargs echo to get the language supported 
and the same with doc dir to get the documentation languages (then mix them 
while adding IUSE and there you are).

I'm at 5 packages with local LINGUAS support and the output of their -pv is:

[ebuild   R   ] app-editors/kile-1.9_beta2  USE="kde -arts -debug -xinerama" 
LINGUAS="it% -br% -ca% -cs% -cy% -da% -de% -el% -en_GB% -es% -et% -eu% -fi% 
-fr% -ga% -gl% -hi% -hu% -is% -ja% -lt% -mt% -nb% -nl% -nn% -pa% -pl% -pt% 
-pt_BR% -ro% -rw% -sk% -sr% [EMAIL PROTECTED] -sv% -ta% -tr% -zh_CN%" 0 kB
[ebuild   R   ] net-irc/konversation-0.19  USE="-arts -debug -xinerama" 
LINGUAS="it -bg -cs -da -de -el -en_GB -es -et -fi -fr -hi -ja -nl -pt -pt_BR 
-ru -sr [EMAIL PROTECTED] -sv -ta -tr" 0 kB [3]
[ebuild   R   ] media-tv/kdetv-0.8.8-r1  USE="-arts -debug -lirc -opengl 
-xinerama -zvbi" LINGUAS="it% -bg% -br% -ca% -cs% -cy% -da% -de% -el% -en_GB% 
-es% -et% -fi% -fr% -ga% -gl% -hu% -is% -lt% -mt% -nb% -nl% -pa% -pl% -pt% 
-pt_BR% -ro% -ru% -rw% -sr% [EMAIL PROTECTED] -sv% -ta% -tr% -zh_CN%" 0 kB
[ebuild     UD] media-sound/amarok-1.3.8 [1.4_pre20060116] USE="flac kde 
musicbrainz vorbis xine -arts -debug -gstreamer -mp3 -mysql -noamazon -opengl 
-postgres -visualization -xinerama -xmms" LINGUAS="it% -az% -be% -bg% -br% 
-ca% -cs% -cy% -da% -de% -el% -en_GB% -eo% -es% -et% -fi% -fr% -ga% -gl% -he% 
-hi% -hr% -hu% -id% -is% -ja% -ko% -ku% -lo% -lt% -nb% -nds% -nl% -nn% -pa% 
-pl% -pt% -pt_BR% -ro% -ru% -se% -sl% -sq% -sr% [EMAIL PROTECTED] -ss% -sv% 
-ta% -tg% 
-th% -tr% -uk% -uz% -zh_CN% -zh_TW%" 0 kB
[ebuild   R   ] media-tv/xdtv-2.3.0  USE="X alsa ffmpeg jpeg ogg png xv xvid 
zvbi -Xaw3d -aqua_theme -carbone_theme -debug -dvb -encode -lirc -neXt 
-xinerama" LINGUAS="en% it% -ca% -de% -es% -fr% -gl% -ja% -pl% -ru%" 0 kB

(amarok 1.4 is still to fix, I'll do that in my overlay).

> Also, as repoman complain about linguas_blabla not being a valid useflags,
> all the linguas_* useflags should be listed in use.desc
Well I got at least 5 packages that uses a bunch of those LINGUAS flags, so I 
think it's not a problem about adding them to use.desc instead of 
use.local.desc.

If somebody has a list of those variables, I would add them, it seems to me 
the most sensible way to do that, it would add documentation allowing people 
to know what they are going to do. Also, as use.desc is alphabetically 
sorted, all the linguas_* variables will stay together.

-- 
Diego "Flameeyes" Pettenò - http://dev.gentoo.org/~flameeyes/
Gentoo/ALT lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE

Attachment: pgpaksaTfc76Q.pgp
Description: PGP signature

Reply via email to