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=", 

        Wonko
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to