Gentoo Archives: gentoo-dev

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-dev@l.g.o
Cc: ruby@g.o
Subject: [gentoo-dev] [PATCH 2/3] ruby-ng-gnome2.eclass: add debug-print-function calls
Date: Mon, 14 Feb 2022 17:38:57
Message-Id: 20220214173751.4023-3-cyber+gentoo@sysrq.in
In Reply to: [gentoo-dev] Add debug-print-function calls to Ruby eclasses by Anna Vyalkova
1 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
2 ---
3 eclass/ruby-ng-gnome2.eclass | 12 +++++++++++-
4 1 file changed, 11 insertions(+), 1 deletion(-)
5
6 diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
7 index cc475b36b731..732cf9c96b3a 100644
8 --- a/eclass/ruby-ng-gnome2.eclass
9 +++ b/eclass/ruby-ng-gnome2.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 1999-2020 Gentoo Authors
12 +# Copyright 1999-2022 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: ruby-ng-gnome2.eclass
16 @@ -82,6 +82,8 @@ all_ruby_prepare() {
17 # @DESCRIPTION:
18 # Run the configure script in the subbinding for each specific ruby target.
19 each_ruby_configure() {
20 + debug-print-function ${FUNCNAME} "${@}"
21 +
22 [[ -e extconf.rb ]] || return
23
24 ${RUBY} extconf.rb || die "extconf.rb failed"
25 @@ -91,6 +93,8 @@ each_ruby_configure() {
26 # @DESCRIPTION:
27 # Compile the C bindings in the subbinding for each specific ruby target.
28 each_ruby_compile() {
29 + debug-print-function ${FUNCNAME} "${@}"
30 +
31 [[ -e Makefile ]] || return
32
33 # We have injected --no-undefined in Ruby as a safety precaution
34 @@ -109,6 +113,8 @@ each_ruby_compile() {
35 # @DESCRIPTION:
36 # Install the files in the subbinding for each specific ruby target.
37 each_ruby_install() {
38 + debug-print-function ${FUNCNAME} "${@}"
39 +
40 if [[ -e Makefile ]]; then
41 # Create the directories, or the package will create them as files.
42 local archdir=$(ruby_rbconfig_value "sitearchdir")
43 @@ -124,6 +130,8 @@ each_ruby_install() {
44 # @DESCRIPTION:
45 # Install the files common to all ruby targets.
46 all_ruby_install() {
47 + debug-print-function ${FUNCNAME} "${@}"
48 +
49 for doc in ../AUTHORS ../NEWS ChangeLog README; do
50 [[ -s ${doc} ]] && dodoc $doc
51 done
52 @@ -139,6 +147,8 @@ all_ruby_install() {
53 # @DESCRIPTION:
54 # Run the tests for this package.
55 each_ruby_test() {
56 + debug-print-function ${FUNCNAME} "${@}"
57 +
58 [[ -e test/run-test.rb ]] || return
59
60 if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
61 --
62 2.35.1