• [gentoo-dev] [PATCH 1/3] ruby-ng.eclass: add debug-print-function calls

    From Anna Vyalkova@21:1/5 to All on Mon Feb 14 18:40:01 2022
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    ---
    eclass/ruby-ng.eclass | 52 ++++++++++++++++++++++++++++++++++++++++++-
    1 file changed, 51 insertions(+), 1 deletion(-)

    diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
    index 90da695a04c2..8e7c7f76290b 100644
    --- a/eclass/ruby-ng.eclass
    +++ b/eclass/ruby-ng.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: ruby-ng.eclass
    @@ -102,6 +102,8 @@ esac
    # Set `comparator' and `version' to include a comparator (=, >=, etc.) and a
    # version string to the returned string
    ruby_implementation_depend() {
    + debug-print-function ${FUNCNAME} "${@}"
    +
    _ruby_implementation_depend $1
    }

    @@ -132,6 +134,8 @@ _ruby_get_all_impls() {
    # ruby_add_bdepend(), but may also be useful in an ebuild to specify
    # more complex dependencies.
    ruby_samelib() {
    + debug-print-function ${FUNCNAME} "${@}"
    +
    local res=
    for _ruby_implementation in $(_ruby_get_all_imp