>>>>> 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.

> 2012/1/14 "Paweł Hajdan, Jr." <[email protected]>:
>> On 1/14/12 12:21 PM, Ulrich Mueller wrote:
>>> It can't be a USE flag, but something like the following might work:
>>> 
>>> # @ECLASS-VARIABLE: CDROM_DISABLE_PROPERTIES
>>> # @DEFAULT_UNSET
>>> # @DESCRIPTION:
>>> # By default, the eclass sets PROPERTIES="interactive".
>>> # A non-empty value of CDROM_DISABLE_PROPERTIES suppresses this.
>>> 
>>> [[ -n ${CDROM_DISABLE_PROPERTIES} ]] || PROPERTIES="interactive"
>> 
>> LGTM (looks good to me)

Reply via email to