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 23083138350 for ; Sat, 15 Feb 2020 12:21:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62A86E099E; Sat, 15 Feb 2020 12:19:05 +0000 (UTC) Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (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 5BAE9E0995 for ; Sat, 15 Feb 2020 12:19:04 +0000 (UTC) Received: by mail-pl1-x644.google.com with SMTP id t6so4895215plj.5 for ; Sat, 15 Feb 2020 04:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qato7P7+1yCiqaHpbrAx+yWcm7GNatZbnfmdGJukRWA=; b=ZZfog4PriU0KdSzHww5QiDtDPZolBmY4axYAnj+fUVOKnZ4iv4bdV2B4w08LBdX6rX NV3LI5Q719GOmgbSOmTN8yoMNrjTKmwWPwScZhaaeKCZA6emAMdpd0Wc6x57iflwLa9W kJwJsvCH4Opvl7YPSGp3Grpk48wfiaMyYTpvzNHjy2nj+mwDBOCc0KZsBoycAsS/bwlM SaNuWNBIWFYU19RC5ZICTHX1R/XUwWxH4S8JXYyy7PPRVSWSl4nfwLKehe1Y8rdHSoNU JDbkjP53CMAcuFdcSaA84U+36iM1QkPAlXhnycFH66w+njzsH9/x7q1NE0/+rVmCyIcZ Q05g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qato7P7+1yCiqaHpbrAx+yWcm7GNatZbnfmdGJukRWA=; b=aROqKeos7MwOVZSQxzALTAJ6z8f7cdtxQQsgSb5y2p/csMhJOVKNFU2H4e7Aw3WV8B gEIa+p342K7gMxr21MGNEX0d07/Ppz6mjP0UFrmmuoZwabG4QwMHu+fHP+BtAUtDghT4 QvCJqzAQOkYyae9kL2SdjexM4WcmbWgQHpO3svji0OEgFYfcp6kAPyypMrFQw8sfzsX6 przEkBY1X6yEhiFrzaI/39xmSMwEol+uzM8l6ly9Xdjh7XPToafKgWOjiGkcwo4HNOyK y+UI2aWPc2e44mKL/taLbA+dHOnBGpt7h2w5b29w3Ptjv37i6DFinKCn7AAs7AnoLi38 +m5A== X-Gm-Message-State: APjAAAWFuqzT6KhNFej3Agnb712ehgeUGo0VGLSGaNr0ZeOjoAyjDhkq fmiDpOa9YnaYBcbDNpgReFqkzqFdazs= X-Google-Smtp-Source: APXvYqwgPFlsKq7aAkiPhADO/IE/lvKfAa+wyNTMFaqJ5WC5GZBuGqreh556dvq2JjvfeZHKpVavTA== X-Received: by 2002:a17:902:8213:: with SMTP id x19mr7777990pln.161.1581769142534; Sat, 15 Feb 2020 04:19:02 -0800 (PST) Received: from localhost ([240d:1a:2cc:8e00:9ae8:15b8:5709:4ef]) by smtp.gmail.com with ESMTPSA id 199sm10826582pfv.81.2020.02.15.04.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 04:19:01 -0800 (PST) Sender: Naohiro Aota From: Naohiro Aota To: gentoo-dev@lists.gentoo.org Cc: ruby@gentoo.org, Naohiro Aota Subject: [gentoo-dev] [PATCH 8/9] ruby-ng-gnome2.eclass: fold common all_ruby_prepare Date: Sat, 15 Feb 2020 21:18:32 +0900 Message-Id: <20200215121833.3631177-8-naota@gentoo.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200215121833.3631177-1-naota@gentoo.org> References: <20200215121833.3631177-1-naota@gentoo.org> 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 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9819cd67-e12a-459e-9415-4388c5c69f55 X-Archives-Hash: c9fe91acf395d87deceb5b4ce85ba067 Signed-off-by: Naohiro Aota --- eclass/ruby-ng-gnome2.eclass | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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="https://ruby-gnome2.osdn.jp/" LICENSE="LGPL-2.1+" SLOT="0" +ruby-ng-gnome2_all_ruby_prepare() { + # Avoid compilation of dependencies during test. + if [ -e test/run-test.rb ]; then + sed -i -e '/system(/s/which make/true/' test/run-test.rb || die + fi + + # work on top directory + pushd .. >/dev/null + + # Avoid native installer + if [ -e glib2/lib/mkmf-gnome.rb ]; then + sed -i -e '/native-package-installer/ s:^:#:' \ + -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb || die + fi + + popd >/dev/null +} + +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 target. -- 2.25.0