]> git.pld-linux.org Git - packages/tomoe.git/blame - tomoe-ruby.patch
- added ruby patch, package ruby binding
[packages/tomoe.git] / tomoe-ruby.patch
CommitLineData
19d2e237
JB
1--- tomoe-0.6.0/macros/ruby.m4.orig 2007-06-11 03:05:42.000000000 +0200
2+++ tomoe-0.6.0/macros/ruby.m4 2012-11-12 21:18:04.642203203 +0100
3@@ -28,14 +28,15 @@
4
5 changequote(<<, >>)
6 for var_name in archdir sitearchdir CFLAGS LIBRUBYARG libdir \
7- sitelibdir sitearchdir; do
8+ sitelibdir sitearchdir rubyhdrdir sitehdrdir arch; do
9 rbconfig_tmp=`$rbconfig "print Config::CONFIG['$var_name']"`
10 eval "rbconfig_$var_name=\"$rbconfig_tmp\""
11 done
12+ rbconfig_archhdrdir="$rbconfig_rubyhdrdir/$rbconfig_arch"
13 changequote([, ])
14
15- RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir "
16- RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_sitearchdir "
17+ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir -I$rbconfig_rubyhdrdir -I$rbconfig_archhdrdir"
18+ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_sitearchdir -I$rbconfig_sitehdrdir"
19 RUBY_CFLAGS="$RUBY_CFLAGS $rbconfig_CFLAGS "
20 RUBY_LIBS="$rbconfig_LIBRUBYARG"
21 RUBY_LDFLAGS="-L$rbconfig_libdir"
22--- tomoe-0.6.0/bindings/ruby/tomoe-rb-char.c.orig 2007-06-06 02:44:38.000000000 +0200
23+++ tomoe-0.6.0/bindings/ruby/tomoe-rb-char.c 2012-11-12 21:20:44.718863156 +0100
24@@ -13,7 +13,7 @@
25 if (NIL_P(xml)) {
26 chr = tomoe_char_new();
27 } else {
28- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len);
29+ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml));
30 }
31
32 G_INITIALIZE(self, chr);
This page took 0.067708 seconds and 4 git commands to generate.