• [PATCH] cmake-multilib.eclass: Support EAPI-8, add guard

    From Andreas Sturmlechner@21:1/5 to gentoo-dev on Wed Sep 1 10:08:09 2021
    Move EXPORT_FUNCTIONS below guard.

    Signed-off-by: Andreas Sturmlechner <[email protected]>
    ---
    eclass/cmake-multilib.eclass | 27 +++++++++++++++++----------
    1 file changed, 17 insertions(+), 10 deletions(-)

    diff --git a/eclass/cmake-multilib.eclass b/eclass/cmake-multilib.eclass
    index 6b38d260655..c848e3882f5 100644
    --- a/eclass/cmake-multilib.eclass
    +++ b/eclass/cmake-multilib.eclass
    @@ -6,7 +6,7 @@
    # Michał Górny <[email protected]>
    # @AUTHOR:
    # Author: Michał Górny <[email protected]>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: cmake wrapper for multilib builds
    # @DESCRIPTION:
    # The cmake-multilib.eclass provides a glue between cmake.eclass(5)
    @@ -19,21 +19,23 @@
    # in multilib-minimal, yet they ought to call appropriate cmake
    # phase rather than 'default'.

    +[[ ${EAPI} == 7 ]] && : ${CMAKE_ECLASS:=cmake-utils}
    # @ECLASS-VARIABLE: CMAKE_ECLASS
    # @PRE_INHERIT
    # @DESCRIPTION:
    -# Default is "cmake-utils" for compatibility in EAPI-7. Specify "cmake" for
    -# ebuilds that ported to cmake.eclass already. Future EAPI is "cmake" only.
    -: ${CMAKE_E