Sun Sep 12 01:59:39 2010 UTC ()
Add a patch for ruby-cabocha to suport both ruby18 and ruby19.
I should commit with previous ruby-cabocha's commit.


(taca)
diff -r1.1.1.1 -r1.2 pkgsrc/textproc/cabocha/distinfo
diff -r0 -r1.1 pkgsrc/textproc/cabocha/patches/patch-ab

cvs diff -r1.1.1.1 -r1.2 pkgsrc/textproc/cabocha/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/cabocha/distinfo 2010/05/19 12:16:25 1.1.1.1
+++ pkgsrc/textproc/cabocha/distinfo 2010/09/12 01:59:39 1.2
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $ 1$NetBSD: distinfo,v 1.2 2010/09/12 01:59:39 taca Exp $
2 2
3SHA1 (cabocha-0.53.tar.gz) = 6b8903aa6843887bb669d9d5baea8a0eae320d80 3SHA1 (cabocha-0.53.tar.gz) = 6b8903aa6843887bb669d9d5baea8a0eae320d80
4RMD160 (cabocha-0.53.tar.gz) = 39b637adc8b882542ecc3b6df34d8f6b99be3e38 4RMD160 (cabocha-0.53.tar.gz) = 39b637adc8b882542ecc3b6df34d8f6b99be3e38
5Size (cabocha-0.53.tar.gz) = 11552551 bytes 5Size (cabocha-0.53.tar.gz) = 11552551 bytes
6SHA1 (patch-aa) = cb868fa8b88180ed5f84d55796d042e5774862af 6SHA1 (patch-aa) = cb868fa8b88180ed5f84d55796d042e5774862af
 7SHA1 (patch-ab) = 3dcaae627c12a8ffc3595177768445335c5a3bd4

File Added: pkgsrc/textproc/cabocha/patches/Attic/patch-ab
$NetBSD: patch-ab,v 1.1 2010/09/12 01:59:39 taca Exp $

Use modern Ruby's API.

--- swig/arg.i.orig	2002-11-10 19:02:39.000000000 +0000
+++ swig/arg.i
@@ -95,7 +95,7 @@
   if (TYPE($input) != T_ARRAY) {
     SWIG_exception(SWIG_ValueError, "Expected an array");
   }
-  $1 = RARRAY($input)->len;
+  $1 = RARRAY_LEN($input);
   if ($1 == 0) {
     SWIG_exception(SWIG_ValueError, "List must contain at least 1 element");
   }
@@ -106,7 +106,7 @@
       delete [] $2;
       SWIG_exception(SWIG_ValueError, "List items must be strings");
     }
-    $2[i] = STR2CSTR(s);
+    $2[i] = StringValuePtr(s);
   }
   $2[i] = 0;
 }