Alex Schuster <[EMAIL PROTECTED]> wrote: > Willie Wong writes: > >> On Wed, Mar 12, 2008 at 04:07:16PM +0100, Penguin Lover Dirk Heinrichs >> squawked: >> > > I'd like to set LINGUAS=de for almost every package. But for the >> > > sys-apps/man-pages package, I'd like LINGUAS not to be set, so >> > > that I don't get the german man pages installed. >> > > >> > > How would I do that? >> > >> > Put this in /etc/portage/package.use: >> > >> > sys-apps/man-pages -nls >> >> Does this work for other packages? For example, I don't think acroread >> has the nls USE flag. > > I don't think so. But: /etc/portage/bashrc is evaluated by emerge, and you > can put any stuff you want into there. Like this: > > if [[ $CATEGORY/$PN == sys-apps/man-pages ]] > then > LINGUAS= > fi > > > It seems to be common practice to put some more general code into there, > and have package-specific file in sub-directories. Mine look slike this: > > envFile=/etc/portage/package.env/$CATEGORY/$PN > if [[ -f $envFile-$PV ]] > then > . "$envFile-$PV" > elif [[ -f $envFile ]] > then > . "$envFile" > fi > > So I would have a file /etc/portage/package.env/sys-apps/man-pages > containing "LINGUAS=",
I did as you described. When I now run "emerge -vpt man-pages", I get: # emerge -vpt man-pages These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] sys-apps/man-pages-2.78 [2.42] USE="nls" LINGUAS="-cs% -da% de%* -es% -fr% -it% -ja% -nl% -pl% -ro% -ru% -zh_CN%" 1,823 kB [ebuild N ] app-i18n/man-pages-de-0.5-r1 510 kB # cat /etc/portage/package.env/sys-apps/man-pages export LINGUAS= # cat /etc/portage/bashrc # <news:[EMAIL PROTECTED]> envFile=/etc/portage/package.env/$CATEGORY/$PN if [[ -f $envFile-$PV ]] then . "$envFile-$PV" elif [[ -f $envFile ]] then . "$envFile" fi It seems as if this does not work - or does it? Michael -- gentoo-user@lists.gentoo.org mailing list