homebrew-core/Formula/cconv.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes .

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

27 lines
912 B
Ruby

class Cconv < Formula
desc "Iconv based simplified-traditional Chinese conversion tool"
homepage "https://code.google.com/p/cconv/"
url "https://cconv.googlecode.com/files/cconv-0.6.2.tar.gz"
sha256 "f463da66c2ae18407441e12716f5f1c6cdea4e417ebfd475ec4c6dc6ad250c9d"
bottle do
cellar :any
sha1 "bf9023851423f52249b9107fe71a89f16ea00146" => :yosemite
sha1 "d3c284caaf0ef18e98050078c9eda2f3896b666c" => :mavericks
sha1 "3a700e441e9b0d2d2a939269fa7c71e985a453bf" => :mountain_lion
end
def install
# fix link with iconv: https://code.google.com/p/cconv/issues/detail?id=18
inreplace "Makefile.in", "@ICONV_LIBS@", "@ICONV_LIBS@ -liconv"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
rm_f include/"unicode.h"
end
test do
system bin/"cconv", "-l"
end
end