Gentoo Archives: gentoo-devhelp

From: Mike Frysinger <vapier@g.o>
To: gentoo-devhelp@l.g.o
Cc: Steven J Long <slong@××××××××××××××××××.uk>
Subject: Re: [gentoo-devhelp] Re: LINGUAS vs LANGUAGES
Date: Sun, 26 Jul 2009 20:51:48
In Reply to: [gentoo-devhelp] Re: LINGUAS vs LANGUAGES by Steven J Long
On Tuesday 21 July 2009 06:13:25 Steven J Long wrote:
> Nikos Chantziaras wrote: > > Thanks. I ended up doing it this way, though with only one loop in > > src_install(), which seems to be a bit more efficient and shorter: > > > > > > LANGUAGES="de" > > for i in ${LANGUAGES}; do > > IUSE="${IUSE} linguas_${i}" > > done > > Just on a side-note (not saying it's how you want to do this one), this is > something that BASH arrays are nice for (saving another loop): > $ foo=(bar baz quux) > $ echo "prefixed: '${foo[*]/#/pfx_}'" > prefixed: 'pfx_bar pfx_baz pfx_quux'
printf would probably be better as it is typically a shell builtin and it doesnt require use of arrays/uncommon syntax. media-gfx/exiv2/exiv2-0.18.ebuild: IUSE_LINGUAS="de es fi fr pl ru sk" IUSE="${IUSE} $(printf 'linguas_%s ' ${IUSE_LINGUAS})" -mike


File name MIME type
signature.asc application/pgp-signature


Subject Author
[gentoo-devhelp] Re: Re: LINGUAS vs LANGUAGES Steven J Long <slong@××××××××××××××××××.uk>