summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/ruby-ng-gnome2.eclass22
1 files changed, 22 insertions, 0 deletions
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 1ba4cf0d9aab..3b4092c86091 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.