homebrew-core/Formula/cconv.rb

29 lines
1.1 KiB
Ruby
Raw Normal View History

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"
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
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