aboutsummaryrefslogtreecommitdiff
path: root/japanese/ruby-mecab
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-03-02 07:36:14 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-03-02 07:36:14 +0000
commit130f39add869d39457d3eb758fbf5618550e4483 (patch)
tree0b3a1e7468a8d3159cd43fb51208245277e52881 /japanese/ruby-mecab
parent73c5630d7eaafc670280aae1be45429986e3285a (diff)
downloadports-130f39add869d39457d3eb758fbf5618550e4483.tar.gz
ports-130f39add869d39457d3eb758fbf5618550e4483.zip
Fix build with ruby 1.8.
PR: ports/60173 Submitted by: Takahiro Morishita <morishita@skywing.org>
Notes
Notes: svn path=/head/; revision=102701
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 000000000000..12da6565191b
--- /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')