Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 25 Mar 2022 19:48:04
Message-Id: 1648237662.508df85c48397645716f02e78923084df65d721e.sam@gentoo
1 commit: 508df85c48397645716f02e78923084df65d721e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 18 01:19:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 25 19:47:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=508df85c
7
8 ruby-ng.eclass: avoid false-positive for EclassDocMissingVar (inherits)
9
10 It's fine to call inherit multiple times and this avoids a EclassDocMissingVar
11 warning for the variable 'inherits'.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 eclass/ruby-ng.eclass | 9 ++++-----
16 1 file changed, 4 insertions(+), 5 deletions(-)
17
18 diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
19 index 1bc934573140..72e714129715 100644
20 --- a/eclass/ruby-ng.eclass
21 +++ b/eclass/ruby-ng.eclass
22 @@ -66,20 +66,19 @@
23 # (e.g. selenium's firefox driver extension). When set this argument is
24 # passed to "grep -E" to remove reporting of these shared objects.
25
26 -local inherits=""
27 case ${EAPI} in
28 5)
29 - inherits="eutils toolchain-funcs"
30 + inherit eutils toolchain-funcs
31 ;;
32 6)
33 - inherits="estack toolchain-funcs"
34 + inherit estack toolchain-funcs
35 ;;
36 *)
37 - inherits="estack"
38 + inherit estack
39 ;;
40 esac
41
42 -inherit ${inherits} multilib ruby-utils
43 +inherit multilib ruby-utils
44
45 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup