Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: ruby@g.o, Naohiro Aota <naota@g.o>
Subject: Re: [gentoo-dev] [PATCH 8/9] ruby-ng-gnome2.eclass: fold common all_ruby_prepare
Date: Sun, 16 Feb 2020 05:44:59
Message-Id: 569afda354e4aaed16e22bdb88be49c74e10b6c4.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH 8/9] ruby-ng-gnome2.eclass: fold common all_ruby_prepare by Naohiro Aota
1 On Sat, 2020-02-15 at 21:18 +0900, Naohiro Aota wrote:
2 > Signed-off-by: Naohiro Aota <naota@g.o>
3 > ---
4 > eclass/ruby-ng-gnome2.eclass | 22 ++++++++++++++++++++++
5 > 1 file changed, 22 insertions(+)
6 >
7 > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
8 > index 619a02d0d1d7..4220dc9f2092 100644
9 > --- a/eclass/ruby-ng-gnome2.eclass
10 > +++ b/eclass/ruby-ng-gnome2.eclass
11 > @@ -47,6 +47,28 @@ HOMEPAGE="https://ruby-gnome2.osdn.jp/"
12 > LICENSE="LGPL-2.1+"
13 > SLOT="0"
14 >
15 > +ruby-ng-gnome2_all_ruby_prepare() {
16 > + # Avoid compilation of dependencies during test.
17 > + if [ -e test/run-test.rb ]; then
18
19 Don't use [.
20
21 > + sed -i -e '/system(/s/which make/true/' test/run-test.rb || die
22 > + fi
23 > +
24 > + # work on top directory
25 > + pushd .. >/dev/null
26
27 || die
28
29 > +
30 > + # Avoid native installer
31 > + if [ -e glib2/lib/mkmf-gnome.rb ]; then
32
33 Don't use [.
34
35 > + sed -i -e '/native-package-installer/ s:^:#:' \
36 > + -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb || die
37 > + fi
38 > +
39 > + popd >/dev/null
40
41 || die
42
43 > +}
44 > +
45 > +all_ruby_prepare() {
46 > + ruby-ng-gnome2_all_ruby_prepare
47 > +}
48 > +
49 > # @FUNCTION: each_ruby_configure
50 > # @DESCRIPTION:
51 > # Run the configure script in the subbinding for each specific ruby target.
52
53 --
54 Best regards,
55 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature