From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 083D8138350 for ; Sun, 16 Feb 2020 05:44:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B57FAE08C8; Sun, 16 Feb 2020 05:44:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6031CE0875 for ; Sun, 16 Feb 2020 05:44:56 +0000 (UTC) Received: from pomiot (c142-245.icpnet.pl [85.221.142.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 7F7F034ED62; Sun, 16 Feb 2020 05:44:54 +0000 (UTC) Message-ID: <569afda354e4aaed16e22bdb88be49c74e10b6c4.camel@gentoo.org> Subject: Re: [gentoo-dev] [PATCH 8/9] ruby-ng-gnome2.eclass: fold common all_ruby_prepare From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: ruby@gentoo.org, Naohiro Aota Date: Sun, 16 Feb 2020 06:44:50 +0100 In-Reply-To: <20200215121833.3631177-8-naota@gentoo.org> References: <20200215121833.3631177-1-naota@gentoo.org> <20200215121833.3631177-8-naota@gentoo.org> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-SGbZmx8O5xizoyO4ffJm" User-Agent: Evolution 3.32.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: d38cd27e-19b2-4411-8ba0-dac9bb713700 X-Archives-Hash: 4f77997914c5c332daca3282214b4af0 --=-SGbZmx8O5xizoyO4ffJm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2020-02-15 at 21:18 +0900, Naohiro Aota wrote: > Signed-off-by: Naohiro Aota > --- > eclass/ruby-ng-gnome2.eclass | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) >=20 > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass > index 619a02d0d1d7..4220dc9f2092 100644 > --- a/eclass/ruby-ng-gnome2.eclass > +++ b/eclass/ruby-ng-gnome2.eclass > @@ -47,6 +47,28 @@ HOMEPAGE=3D"https://ruby-gnome2.osdn.jp/" > LICENSE=3D"LGPL-2.1+" > SLOT=3D"0" > =20 > +ruby-ng-gnome2_all_ruby_prepare() { > + # Avoid compilation of dependencies during test. > + if [ -e test/run-test.rb ]; then Don't use [. > + sed -i -e '/system(/s/which make/true/' test/run-test.rb || die > + fi > + > + # work on top directory > + pushd .. >/dev/null || die > + > + # Avoid native installer > + if [ -e glib2/lib/mkmf-gnome.rb ]; then Don't use [. > + sed -i -e '/native-package-installer/ s:^:#:' \ > + -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb || die > + fi > + > + popd >/dev/null || die > +} > + > +all_ruby_prepare() { > + ruby-ng-gnome2_all_ruby_prepare > +} > + > # @FUNCTION: each_ruby_configure > # @DESCRIPTION: > # Run the configure script in the subbinding for each specific ruby targ= et. --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-SGbZmx8O5xizoyO4ffJm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAl5I1tJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM3 NkE4NDUwOTQwOThEMjhDQzhCMjZDNTYzOUFEQUUyMzI5RTI0MEUACgkQY5ra4jKe JA7YDAf/ZgycCk5Y1tIdy0F7rB7vDs1nvomsVD2aJ9+txpb55QdtDJyDgzR04hQH 9fx9Nk41e/YfNV3vMKQk9T5ZVVMvcHPwxMM/f6wQdKAmG2QivJnuh/6POXdee4pj ZpR9rtT33tAbS2QTvDSG/4scnRL1K43JbmhbEQ0zPUpd0pQb+Jmst5HOMeNW8BNT C/8jqM0KtiyU6G/KlqYs+saDbjMWxln2YN03JMmCwVDykShOKigI3QIZCW8jOJDD 31tYktftHMzhuuE6AzxUvaUDTNynd9ClPTGOrBBsOMzopkcsyCYbCgcJPvSGKbtX osq5F3y87cQZs9xniZmXKvO7GrTtfg== =9PS0 -----END PGP SIGNATURE----- --=-SGbZmx8O5xizoyO4ffJm--