1 |
On Saturday 14 January 2012 11:03:18 Ulrich Mueller wrote: |
2 |
> >>>>> On Sat, 14 Jan 2012, Michael Sterrett wrote: |
3 |
> > Can you give an example of how you think it would be used in an |
4 |
> > ebuild? |
5 |
> |
6 |
> For example, like this: |
7 |
> |
8 |
> CDROM_DISABLE_PROPERTIES=1 |
9 |
> inherit [...] cdrom |
10 |
> |
11 |
> IUSE="cdinstall" |
12 |
> PROPERTIES="cdinstall? ( interactive )" |
13 |
> |
14 |
> It would be required for 7 out of the 36 packages that use cdrom |
15 |
> functions. |
16 |
|
17 |
since USE=cdinstall has been our standard, then perhaps we should codify that |
18 |
in the eclass. are there ebuilds that set CDROM_DISABLE_PROPERTIES and don't |
19 |
have IUSE=cdinstall ? |
20 |
|
21 |
ebuild: |
22 |
CDROM_OPTIONAL="yes" |
23 |
inherit cdrom |
24 |
|
25 |
eclass: |
26 |
if [[ ${CDROM_OPTIONAL} == "yes" ]] ; then |
27 |
PROPERTIES="cdinstall? ( interactive )" |
28 |
else |
29 |
PROPERTIES="interactive" |
30 |
fi |
31 |
IUSE="cdinstall" |
32 |
-mike |