On Sunday 22 March 2009 18:57:16 Valmor de Almeida wrote:
> Helmut Jarausch wrote:
> > Hi,
>
> ...
>
> > How can I set the '-doc' use flags for all packages matching kde-base/*
> > and kde-misc/* (There are hundreds of them!)
>
> I don't know whether the /etc/portage/package.use file will accept this
> syntax but maybe you can do something like
>
>  kde-base/* -doc

It's not supported:

--- Invalid atom in /etc/portage/package.use: kde-base/*

The OP has two choices really: remove the flags from USE and explicitly list 
the packages for which he does want documentation, or insert the flag into USE 
and explictly list the packages for which he wants the documentation removed.

So you are reduced to grep, sed, awk and friends. Here's one (grossly 
inefficient) method:

equery -q hasuse doc | xargs qatom | cut -f1-2 -d ' ' | sed -e 's/ /\//' -e 
's/$/ -doc/' >> /etc/portage/package.use/package.use

-- 
alan dot mckinnon at gmail dot com

Reply via email to