Description: Fix Ruby 2.0 path
 Include path is changed in Ruby 2.0. This patch supports it.
Author: Koichi Akabe <vbkaisetsu@gmail.com>
Bug-Debian: http://bugs.debian.org/739770
Last-Update: 2014-03-31

--- ngraph-gtk-6.06.13.orig/plugins/Makefile.am
+++ ngraph-gtk-6.06.13/plugins/Makefile.am
@@ -2,12 +2,12 @@ extra_dist_common = getobj.nsc create_ob
 
 if HAVE_RUBY_DEV
   ngraphplugindir = $(pkglibdir)/plugins
-  RUBY_INCRUDEDIR = `ruby -e 'puts(RbConfig::CONFIG["rubyhdrdir"])'`
-  RUBY_ARCH = `ruby -e 'puts(RbConfig::CONFIG["arch"])'`
+  RUBY_INCRUDEDIR = `ruby -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir']"`
+  RUBY_ARCH = `ruby -r rbconfig -e "print RbConfig::CONFIG['rubyarchhdrdir']"`
   BUILT_SOURCES = ruby_ngraph.c
   ngraphplugin_LTLIBRARIES = libruby.la
   libruby_la_SOURCES = ruby.c
-  libruby_la_CFLAGS = -I.. -I $(RUBY_INCRUDEDIR) -I $(RUBY_INCRUDEDIR)/$(RUBY_ARCH)
+  libruby_la_CFLAGS = -I.. -I $(RUBY_INCRUDEDIR) -I $(RUBY_ARCH)
   libruby_la_LDFLAGS = -avoid-version -disable-static --mode=link -module `ruby -e 'puts(RbConfig::CONFIG["LIBRUBYARG_SHARED"])'`
   extra_dist = $(extra_dist_common)
 else
