• [gentoo-dev] [PATCH v2] vala.eclass: Support EAPI 8

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Fri Feb 18 08:40:01 2022
    Function vala_src_prepare did not call eapply_user, so it could not be
    used as a stand-alone phase function but must be called explicitly.
    Rename it to vala_setup, which can be called either from pkg_setup or
    from src_prepare. Add a trivial vala_src_prepare wrapper in existing
    EAPIs, so that functionality there does not change.

    Apparently, eutils and multilib eclasses are not used, therefore no
    longer inherit them in EAPI 8.

    Reviewed-by: Mart Raudsepp <leio@gentoo.org>
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    v2: Don't export vala_src_prepare

    eclass/vala.eclass | 33 +++++++++++++++++++++------------
    1 file changed, 21 insertions(+), 12 deletions(-)

    diff --git a/eclass/vala.eclass b/eclass/vala.eclass
    index 677520748c62..40bd993ad32c 100644
    --- a/eclass/vala.eclass
    +++ b/eclass/vala.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2021 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: vala.eclass
    @@ -6,23 +6,20 @@
    # gnome@gentoo.org
    # @AUTHOR:
    # Alexandre Rostovtsev <tetromino@gentoo.org>
    -# @SUPPORTED_EAPIS: 6 7
    +# @SUPPORTED_EAPIS: 6 7 8
    # @BLURB: Sets up the environment for using a specific version of vala.
    # @DESCRIPTION:
    # This eclass sets up commonly used environment variables for using a specific
    # version of dev-lang/vala to configure and build a package. It is needed for
    # packages whose build systems assume the existence of certain unversioned vala
    # executables, pkgconfig files, etc., w