diff options
author | obache <obache@pkgsrc.org> | 2013-02-28 12:31:37 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-02-28 12:31:37 +0000 |
commit | 11948bfb3a87abfa8fe24dd089303d57faecef85 (patch) | |
tree | aeb2de3ab038375be20c586865026381779ef362 /textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp | |
parent | 821940f8289a41ab78b2d40cdd8871cafebfc456 (diff) | |
download | pkgsrc-11948bfb3a87abfa8fe24dd089303d57faecef85.tar.gz |
Update mecab to 0.996.
2013-02-18 MeCab 0.996
* fixes missing linkage with iconv.
* Add function to generate new CSV file from adding costs and left/right context
ID of CVS for user's dictionary.
* Add Lattice::set_result() method for generated analysis result to Lattice
2013-01-24 MeCab 0.995
* Reimplementation of partial analysis function
* Add API for partial analysis function (Lattice:set_boundary_constrant,
Lattice::set_feature_constranit)
Diffstat (limited to 'textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp')
-rw-r--r-- | textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp b/textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp new file mode 100644 index 00000000000..b5eeadf5528 --- /dev/null +++ b/textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp @@ -0,0 +1,17 @@ +$NetBSD: patch-MeCab__wrap.cpp,v 1.1 2013/02/28 12:31:39 obache Exp $ + +* Ruby-1.8 compatibility fix + http://code.google.com/p/mecab/issues/detail?id=3 + +--- MeCab_wrap.cpp.orig 2013-02-17 17:24:16.000000000 +0000 ++++ MeCab_wrap.cpp +@@ -1856,8 +1856,7 @@ static VALUE mMeCab; + + /* Workaround for ruby1.9.x */ + #if defined SWIGRUBY +-#include "ruby/version.h" +-#if RUBY_API_VERSION_CODE >= 10900 ++#if HAVE_RUBY_ENCODING_H + #include "ruby/encoding.h" + #define rb_str_new rb_external_str_new + #endif |