From 130f39add869d39457d3eb758fbf5618550e4483 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Tue, 2 Mar 2004 07:36:14 +0000 Subject: Fix build with ruby 1.8. PR: ports/60173 Submitted by: Takahiro Morishita --- japanese/ruby-mecab/files/patch-extconf.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 japanese/ruby-mecab/files/patch-extconf.rb (limited to 'japanese/ruby-mecab') 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') -- cgit v1.2.3