On Saturday 14 January 2012 11:03:18 Ulrich Mueller wrote: > >>>>> On Sat, 14 Jan 2012, Michael Sterrett wrote: > > Can you give an example of how you think it would be used in an > > ebuild? > > For example, like this: > > CDROM_DISABLE_PROPERTIES=1 > inherit [...] cdrom > > IUSE="cdinstall" > PROPERTIES="cdinstall? ( interactive )" > > It would be required for 7 out of the 36 packages that use cdrom > functions.
since USE=cdinstall has been our standard, then perhaps we should codify that
in the eclass. are there ebuilds that set CDROM_DISABLE_PROPERTIES and don't
have IUSE=cdinstall ?
ebuild:
CDROM_OPTIONAL="yes"
inherit cdrom
eclass:
if [[ ${CDROM_OPTIONAL} == "yes" ]] ; then
PROPERTIES="cdinstall? ( interactive )"
else
PROPERTIES="interactive"
fi
IUSE="cdinstall"
-mike
signature.asc
Description: This is a digitally signed message part.
