1 |
i wrote a new func for toolchain.eclass: huse. this is because the |
2 |
toolchain.eclass supports multiple versions in parallel, and the IUSE value |
3 |
can vary greatly between them. so doing `use foo` without checking IUSE first |
4 |
doesn't work. since i got a request to use this in other eclasses (for the |
5 |
same reason), i figured i'd move it to eutils.eclass so more people can benefit. |
6 |
|
7 |
now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll be |
8 |
adding huse: |
9 |
huse() { |
10 |
in_iuse $1 || return 1 |
11 |
use $1 |
12 |
} |
13 |
|
14 |
any comments before i publish ? |
15 |
-mike |