commit: 508df85c48397645716f02e78923084df65d721e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 18 01:19:42 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Mar 25 19:47:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=508df85c
ruby-ng.eclass: avoid false-positive for EclassDocMissingVar (inherits) It's fine to call inherit multiple times and this avoids a EclassDocMissingVar warning for the variable 'inherits'. Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/ruby-ng.eclass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 1bc934573140..72e714129715 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -66,20 +66,19 @@ # (e.g. selenium's firefox driver extension). When set this argument is # passed to "grep -E" to remove reporting of these shared objects. -local inherits="" case ${EAPI} in 5) - inherits="eutils toolchain-funcs" + inherit eutils toolchain-funcs ;; 6) - inherits="estack toolchain-funcs" + inherit estack toolchain-funcs ;; *) - inherits="estack" + inherit estack ;; esac -inherit ${inherits} multilib ruby-utils +inherit multilib ruby-utils EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup