Gentoo Archives: gentoo-dev

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: cdrom.eclass
Date: Sat, 14 Jan 2012 14:27:26
Message-Id: CA+rTEUPuOJexcaU7j5JkgRmgB21d=UrcsQVGA_ow=DinFTBaNQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: cdrom.eclass by "Paweł Hajdan
1 Can you give an example of how you think it would be used in an ebuild?
2
3 2012/1/14 "Pawe³ Hajdan, Jr." <phajdan.jr@g.o>:
4 > On 1/14/12 12:21 PM, Ulrich Mueller wrote:
5 >> It can't be a USE flag, but something like the following might work:
6 >>
7 >> # @ECLASS-VARIABLE: CDROM_DISABLE_PROPERTIES
8 >> # @DEFAULT_UNSET
9 >> # @DESCRIPTION:
10 >> # By default, the eclass sets PROPERTIES="interactive".
11 >> # A non-empty value of CDROM_DISABLE_PROPERTIES suppresses this.
12 >>
13 >> [[ -n ${CDROM_DISABLE_PROPERTIES} ]] || PROPERTIES="interactive"
14 >
15 > LGTM (looks good to me)
16 >

Replies