2014-03-22 11:16:31 +00:00
|
|
|
class Kakasi < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert Kanji characters to Hiragana, Katakana, or Romaji"
|
2015-02-20 09:08:57 +00:00
|
|
|
homepage "http://kakasi.namazu.org/"
|
2014-09-09 08:29:51 +00:00
|
|
|
url "http://kakasi.namazu.org/stable/kakasi-2.3.6.tar.gz"
|
|
|
|
sha1 "5f2e02264dda11940fb7b5387c327d4c4324bdb3"
|
2014-03-22 11:16:31 +00:00
|
|
|
|
2014-03-22 17:07:08 +00:00
|
|
|
bottle do
|
2015-02-20 10:02:39 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "3dc9fd7f8400f0f9881a85afd1031c6e4a3eec85" => :yosemite
|
|
|
|
sha1 "ebd2317184992b420fb44c2d5a287eb29a7c9cec" => :mavericks
|
|
|
|
sha1 "3fa224c221fd544782b8955f2988d918dea5caca" => :mountain_lion
|
2014-03-22 17:07:08 +00:00
|
|
|
end
|
|
|
|
|
2014-03-22 11:16:31 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-20 09:08:57 +00:00
|
|
|
hiragana = "\xa4\xa2 \xa4\xab \xa4\xb5"
|
|
|
|
romanji = pipe_output("kakasi -rh -ieuc -Ha", hiragana).chomp
|
2014-03-22 11:16:31 +00:00
|
|
|
assert_equal "a ka sa", romanji
|
|
|
|
end
|
|
|
|
end
|