commit:     0cdb994d82ec4f3dd046c6c5d0e675b63922f0ee
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  6 09:30:00 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 06:14:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdb994d

dev-ruby/ruby-gtk2: fix build issue

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 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild 
b/dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild
index b4ad55f0eef..d8b8c016fe6 100644
--- a/dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild
+++ b/dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild
@@ -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() {

Reply via email to