homebrew-core/Formula/mecab.rb
makigumo fc5486623c mecab: update homepage and download url, add test
Closes Homebrew/homebrew#39088.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2015-04-26 23:23:43 -07:00

25 lines
804 B
Ruby

# encoding: UTF-8
class Mecab < Formula
homepage "https://taku910.github.io/mecab/"
url "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE"
version "0.996"
sha256 "e073325783135b72e666145c781bb48fada583d5224fb2490fb6c1403ba69c59"
bottle do
revision 1
sha1 "73f5e7206a4482f7ab714b0690ad3eeac7f0c9e0" => :yosemite
sha1 "530ee77a2f13cce3225abd0cd9401858219959d9" => :mavericks
sha1 "9747369cd4c0aa246e6a973c4f2e5652e174bae8" => :mountain_lion
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
result = `echo "mecabのテストです。" | mecab |md5`.chomp
assert_equal "3518edb94fe7fbd3784474f2ddc02905", result
end
end