aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorteenst2013-09-20 17:38:22 +0900
committerAdam Vandenberg2013-09-22 21:53:09 -0700
commit7a77fd43f46960093139b73ceb06d48aff564258 (patch)
tree7b5716e71dec6c06122283ba3947ae284f3b3a70 /Library
parent1f3b90a488b14a1e3cf095a980eee497a1231e66 (diff)
downloadhomebrew-7a77fd43f46960093139b73ceb06d48aff564258.tar.bz2
mecab-unidic 2.7.0
UniDic is yet another MeCab(Part-of-Speech and Morphological Analyzer) dictionary. Closes #22701. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mecab-unidic.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/mecab-unidic.rb b/Library/Formula/mecab-unidic.rb
new file mode 100644
index 000000000..7993666c9
--- /dev/null
+++ b/Library/Formula/mecab-unidic.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class MecabUnidic < Formula
+ homepage 'http://sourceforge.jp/projects/unidic/'
+ url 'http://sourceforge.jp/frs/redir.php?m=iij&f=%2Funidic%2F58338%2Funidic-mecab-2.1.2_src.zip'
+ sha1 'c501246539e4e2bd5b04c731fcb04985cccf8bcf'
+
+ depends_on 'mecab'
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make", "install"
+ end
+
+
+ def caveats; <<-EOS.undent
+ If you want to use UniDic, please rewrite "dicdir".
+ #{mecab_dicdir}/etc/mecabrc
+ EOS
+ end
+
+ def mecab_dicdir
+ `mecab-config --prefix`.chomp!
+ end
+end