summaryrefslogtreecommitdiff
path: root/textproc/ruby-mecab
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-02-28 12:31:37 +0000
committerobache <obache@pkgsrc.org>2013-02-28 12:31:37 +0000
commit11948bfb3a87abfa8fe24dd089303d57faecef85 (patch)
treeaeb2de3ab038375be20c586865026381779ef362 /textproc/ruby-mecab
parent821940f8289a41ab78b2d40cdd8871cafebfc456 (diff)
downloadpkgsrc-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')
-rw-r--r--textproc/ruby-mecab/distinfo9
-rw-r--r--textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp17
2 files changed, 22 insertions, 4 deletions
diff --git a/textproc/ruby-mecab/distinfo b/textproc/ruby-mecab/distinfo
index 58a9cd4d971..cf20f82b23b 100644
--- a/textproc/ruby-mecab/distinfo
+++ b/textproc/ruby-mecab/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2012/06/10 11:54:45 obache Exp $
+$NetBSD: distinfo,v 1.7 2013/02/28 12:31:38 obache Exp $
-SHA1 (mecab-ruby-0.994.tar.gz) = cb52217e4d6d7c598691b41174606c5339a5bd17
-RMD160 (mecab-ruby-0.994.tar.gz) = cfd828e6090a915c2655e46c5e208885bd099ed4
-Size (mecab-ruby-0.994.tar.gz) = 44483 bytes
+SHA1 (mecab-ruby-0.996.tar.gz) = 5730d9667118d79ad6f2c49f45476d0874718d10
+RMD160 (mecab-ruby-0.996.tar.gz) = 916fbe29716988936abf19be1728b184b0afc0a6
+Size (mecab-ruby-0.996.tar.gz) = 48723 bytes
+SHA1 (patch-MeCab__wrap.cpp) = bfefcacd978c3ec1c6284c6204f111be34342af3
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