2012-05-03 13:20:39 +00:00
|
|
|
class Cconv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Iconv based simplified-traditional Chinese conversion tool"
|
2015-02-14 20:19:01 +00:00
|
|
|
homepage "https://code.google.com/p/cconv/"
|
|
|
|
url "https://cconv.googlecode.com/files/cconv-0.6.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "f463da66c2ae18407441e12716f5f1c6cdea4e417ebfd475ec4c6dc6ad250c9d"
|
2012-05-03 13:20:39 +00:00
|
|
|
|
2015-02-15 19:07:24 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-02-23 16:27:37 +00:00
|
|
|
sha256 "07e137c61d8d908275c223e703205205060ccf08c3694407398725dd8ad3233d" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "65436699d38a250324868565690c295e9668d96f9fa5f1f8d23dfc2dff6fc122" => :yosemite
|
|
|
|
sha256 "6ccd7bc724cb38fb3af7ccb07fb4b45cc6486390c6c7030dc2f9cd89e7531cf4" => :mavericks
|
|
|
|
sha256 "21adc67fe672719cbfc93e940d044a2b2ceb32653cc1a901b79e251c3fb6d090" => :mountain_lion
|
2015-02-15 19:07:24 +00:00
|
|
|
end
|
|
|
|
|
2012-05-03 13:20:39 +00:00
|
|
|
def install
|
2015-02-14 20:19:01 +00:00
|
|
|
# fix link with iconv: https://code.google.com/p/cconv/issues/detail?id=18
|
|
|
|
inreplace "Makefile.in", "@ICONV_LIBS@", "@ICONV_LIBS@ -liconv"
|
|
|
|
|
2012-05-03 13:20:39 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-02-14 20:19:01 +00:00
|
|
|
system "make", "install"
|
|
|
|
rm_f include/"unicode.h"
|
2012-05-03 13:20:39 +00:00
|
|
|
end
|
|
|
|
|
2015-02-14 20:19:01 +00:00
|
|
|
test do
|
|
|
|
system bin/"cconv", "-l"
|
|
|
|
end
|
|
|
|
end
|