diff options
author | taca <taca@pkgsrc.org> | 2010-09-12 01:59:39 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2010-09-12 01:59:39 +0000 |
commit | 189cdf6f0e095114192646b64ecb96e7b063349f (patch) | |
tree | ceecb74e6ca2abe3b89b8c5d9cd07fba1684a6d8 | |
parent | 63df4630852647216f094559d9050e92abbca767 (diff) | |
download | pkgsrc-189cdf6f0e095114192646b64ecb96e7b063349f.tar.gz |
Add a patch for ruby-cabocha to suport both ruby18 and ruby19.
I should commit with previous ruby-cabocha's commit.
-rw-r--r-- | textproc/cabocha/distinfo | 3 | ||||
-rw-r--r-- | textproc/cabocha/patches/patch-ab | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/textproc/cabocha/distinfo b/textproc/cabocha/distinfo index 4f7fad14a14..6c8c1dbd9d2 100644 --- a/textproc/cabocha/distinfo +++ b/textproc/cabocha/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $ +$NetBSD: distinfo,v 1.2 2010/09/12 01:59:39 taca Exp $ SHA1 (cabocha-0.53.tar.gz) = 6b8903aa6843887bb669d9d5baea8a0eae320d80 RMD160 (cabocha-0.53.tar.gz) = 39b637adc8b882542ecc3b6df34d8f6b99be3e38 Size (cabocha-0.53.tar.gz) = 11552551 bytes SHA1 (patch-aa) = cb868fa8b88180ed5f84d55796d042e5774862af +SHA1 (patch-ab) = 3dcaae627c12a8ffc3595177768445335c5a3bd4 diff --git a/textproc/cabocha/patches/patch-ab b/textproc/cabocha/patches/patch-ab new file mode 100644 index 00000000000..01b77bc605c --- /dev/null +++ b/textproc/cabocha/patches/patch-ab @@ -0,0 +1,24 @@ +$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; + } |