Gentoo Archives: gentoo-dev

From: Martin Vaeth <martin@×××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [PATCH] linux-mod.eclass: IUSE default support for MODULES_OPTIONAL_USE
Date: Tue, 16 Jan 2018 17:03:48
Message-Id: p3lb4l$pbo$1@blaine.gmane.org
In Reply to: Re: [gentoo-dev] [PATCH] linux-mod.eclass: IUSE default support for MODULES_OPTIONAL_USE by "Robin H. Johnson"
1 Robin H. Johnson <robbat2@g.o> wrote:
2 > That is counter-intuitive for somebody that puts
3 > MODULES_OPTIONAL_USE_IUSE_DEFAULT=0
4 > Or tries to otherwise have it unset.
5
6 What I usually do is:
7
8 case ${MODULES_OPTIONAL_USE_IUSE_DEFAULT:-n} in
9 [nNfF]*|[oO][fF]*|0|-) # false case
10 ;;
11 *) # true case
12 esac
13
14 This covers most of the "intuitive" attempts (0 - Off FALSE no ...)
15 to switch it off, and everything else (nonempty) means "on".