Skip to content

Commit

Permalink
Add mecab_config
Browse files Browse the repository at this point in the history
  • Loading branch information
sugryo committed Sep 14, 2014
1 parent 9eb784e commit 0415273
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class GroongaBuilder
File.join(@top_dir, "vendor", "mecab")
end

def mecab_config
File.join(mecab_prefix, "bin", "mecab-config")
end

def groonga_version
ENV["GROONGA_VERSION"] || "4.0.5"
end
Expand Down Expand Up @@ -107,7 +111,8 @@ class GroongaBuilder
sh("tar", "xf", "#{ipadic_archive_name}.tar.gz")
Dir.chdir(ipadic_archive_name) do
sh("./configure",
"--prefix=#{mecab_prefix}")
"--prefix=#{mecab_prefix}"
"--with-mecab-config=#{mecab_config}")
sh("make")
sh("make", "install")
end
Expand Down

0 comments on commit 0415273

Please sign in to comment.