aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ruby-mecab
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-03-02 15:36:14 +0800
committerknu <knu@FreeBSD.org>2004-03-02 15:36:14 +0800
commit166059274c4a84f19163d515512665bcca803025 (patch)
treeb4524b8d824b83f93b85ab5729f371fd76940117 /japanese/ruby-mecab
parent7ab224f64a59f94343fb7989ee2173327a5d3e93 (diff)
downloadfreebsd-ports-graphics-166059274c4a84f19163d515512665bcca803025.tar.gz
freebsd-ports-graphics-166059274c4a84f19163d515512665bcca803025.tar.zst
freebsd-ports-graphics-166059274c4a84f19163d515512665bcca803025.zip
Fix build with ruby 1.8.
PR: ports/60173 Submitted by: Takahiro Morishita <morishita@skywing.org>
Diffstat (limited to 'japanese/ruby-mecab')
-rw-r--r--japanese/ruby-mecab/files/patch-extconf.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/japanese/ruby-mecab/files/patch-extconf.rb b/japanese/ruby-mecab/files/patch-extconf.rb
new file mode 100644
index 00000000000..12da6565191
--- /dev/null
+++ b/japanese/ruby-mecab/files/patch-extconf.rb
@@ -0,0 +1,19 @@
+--- extconf.rb.orig Fri Dec 12 09:36:59 2003
++++ extconf.rb Fri Dec 12 09:45:19 2003
+@@ -1,12 +1,12 @@
+ require 'mkmf'
+
+-mecab_config = with_config ('mecab-config', 'mecab-config')
++mecab_config = with_config('mecab-config', 'mecab-config')
+ use_mecab_config = enable_config('mecab-config')
+
+-`mecab-config --libs-only-l`.chomp.split.each { | lib |
+- have_library (lib)
++`#{mecab_config} --libs-only-l`.chomp.split.each{ | lib |
++ have_library(lib)
+ }
+
+ $CFLAGS += ' ' + `#{mecab_config} --cflags`.chomp
+
+-have_header ('mecab.h') && create_makefile('MeCab')
++have_header('mecab.h') && create_makefile('MeCab')