d1ef8e6200
- Add a patch to fix build error with Ruby 1.8 [1] - Add LICENSE section - Adopt OptionsNG - Trim Makefile header - Remove Author: line from pkg-descr - Replace tab with space WWW: line in pkg-descr - Update WWW: line in pkg-descr PR: ports/175257 Submitted by: Yasuhiro KIMURA <yasu_AT_utahime_DOT_org> Obtained from: http://code.google.com/p/mecab/issues/detail?id=3 [1]
12 lines
358 B
C++
12 lines
358 B
C++
--- MeCab_wrap.cpp.orig 2013-01-25 14:07:27.000000000 +0900
|
|
+++ MeCab_wrap.cpp 2013-03-20 15:01:31.000000000 +0900
|
|
@@ -1856,8 +1856,7 @@
|
|
|
|
/* 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
|