dev-ruby/ruby-gtk2: fix build issue
authorHans de Graaff <graaff@gentoo.org>
Fri, 6 Jul 2018 09:30:00 +0000 (11:30 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sat, 7 Jul 2018 06:14:10 +0000 (08:14 +0200)
Explicitly add gtk-2.0 include path. This should be fixed more
comprehensively in later versions of ruby-gtk2.

Closes: https://bugs.gentoo.org/616682
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild

index b4ad55f0eef8be4cf3d7e05ef7d675ba7bd4dce9..d8b8c016fe6814921a40dd8e6ded11a640f14e42 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
 
 inherit virtualx ruby-ng-gnome2
 
@@ -26,6 +26,9 @@ all_ruby_prepare() {
 
        # Use standard icon
        sed -i -e 's/"find"/"call-start"/' test/test_gtk_icon_theme.rb || die
+
+       # Fix search path for gtk-2.0 on Gentoo
+       sed -i -e "/include_paths =/ s:]$:,'/usr/include/gtk-2.0']:" ext/gtk2/extconf.rb || die
 }
 
 each_ruby_test() {