homebrew-core/Formula/kakasi.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

25 lines
823 B
Ruby

class Kakasi < Formula
desc "Convert Kanji characters to Hiragana, Katakana, or Romaji"
homepage "http://kakasi.namazu.org/"
url "http://kakasi.namazu.org/stable/kakasi-2.3.6.tar.gz"
sha256 "004276fd5619c003f514822d82d14ae83cd45fb9338e0cb56a44974b44961893"
bottle do
revision 1
sha1 "3dc9fd7f8400f0f9881a85afd1031c6e4a3eec85" => :yosemite
sha1 "ebd2317184992b420fb44c2d5a287eb29a7c9cec" => :mavericks
sha1 "3fa224c221fd544782b8955f2988d918dea5caca" => :mountain_lion
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
hiragana = "\xa4\xa2 \xa4\xab \xa4\xb5"
romanji = pipe_output("kakasi -rh -ieuc -Ha", hiragana).chomp
assert_equal "a ka sa", romanji
end
end