From 70f1daba232cc8e9a2cb1f8dd4199760bb25b6f8 Mon Sep 17 00:00:00 2001 From: Garrett Hyde Date: Thu, 24 Apr 2014 00:39:01 -0600 Subject: [PATCH] mecab-jumandic 5.1 --- Formula/mecab-jumandic.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/mecab-jumandic.rb diff --git a/Formula/mecab-jumandic.rb b/Formula/mecab-jumandic.rb new file mode 100644 index 0000000000..626f4f805a --- /dev/null +++ b/Formula/mecab-jumandic.rb @@ -0,0 +1,25 @@ +require 'formula' + +class MecabJumandic < Formula + homepage 'http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html' + url 'https://downloads.sourceforge.net/project/mecab/mecab-jumandic/5.1-20070304/mecab-jumandic-5.1-20070304.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmecab%2Ffiles%2Fmecab-jumandic%2F5.1-20070304%2F&ts=1398353933' + sha1 '0672cb267b8fde6268a69d57add7ab1544e62154' + + # Via ./configure --help, valid choices are utf8 (default), euc-jp, sjis + option 'charset=', "Select charset: utf8 (default), euc-jp, or sjis" + + depends_on "mecab" + + def install + charset = ARGV.value('charset') || 'utf8' + args = %W[ + --disable-debug + --disable-dependency-tracking + --prefix=#{prefix} + --with-charset=#{charset} + ] + + system "./configure", *args + system "make install" + end +end