1 |
On Sunday 22 March 2009 18:57:16 Valmor de Almeida wrote: |
2 |
> Helmut Jarausch wrote: |
3 |
> > Hi, |
4 |
> |
5 |
> ... |
6 |
> |
7 |
> > How can I set the '-doc' use flags for all packages matching kde-base/* |
8 |
> > and kde-misc/* (There are hundreds of them!) |
9 |
> |
10 |
> I don't know whether the /etc/portage/package.use file will accept this |
11 |
> syntax but maybe you can do something like |
12 |
> |
13 |
> kde-base/* -doc |
14 |
|
15 |
It's not supported: |
16 |
|
17 |
--- Invalid atom in /etc/portage/package.use: kde-base/* |
18 |
|
19 |
The OP has two choices really: remove the flags from USE and explicitly list |
20 |
the packages for which he does want documentation, or insert the flag into USE |
21 |
and explictly list the packages for which he wants the documentation removed. |
22 |
|
23 |
So you are reduced to grep, sed, awk and friends. Here's one (grossly |
24 |
inefficient) method: |
25 |
|
26 |
equery -q hasuse doc | xargs qatom | cut -f1-2 -d ' ' | sed -e 's/ /\//' -e |
27 |
's/$/ -doc/' >> /etc/portage/package.use/package.use |
28 |
|
29 |
-- |
30 |
alan dot mckinnon at gmail dot com |