commit: 4db5c31fdbec69208e89a1ae26ab6215ea9169e6 Author: Naohiro Aota <naota <AT> gentoo <DOT> org> AuthorDate: Sat Feb 15 04:56:51 2020 +0000 Commit: Naohiro Aota <naota <AT> gentoo <DOT> org> CommitDate: Thu Jul 30 07:21:27 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db5c31f
ruby-ng-gnome2.eclass: fold common all_ruby_prepare Signed-off-by: Naohiro Aota <naota <AT> gentoo.org> 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 1ba4cf0d9aa..3b4092c8609 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -49,6 +49,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.