diff options
| author | LI Daobing | 2012-05-03 21:20:39 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-18 22:26:16 -0700 |
| commit | 55564ec9d18ae70bdf36ff953cc3fe814472ec22 (patch) | |
| tree | 8b1c0b72a226c2af1a5ca8bf0884e87dd94240f7 /Library/Formula | |
| parent | cb0fbf60d54067127975df7aa1a4480ccdacb610 (diff) | |
| download | homebrew-55564ec9d18ae70bdf36ff953cc3fe814472ec22.tar.bz2 | |
cconv 0.6.2
Simplified-Traditional Chinese translate tool. With character and word
translation support.
Closes #12036.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cconv.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/cconv.rb b/Library/Formula/cconv.rb new file mode 100644 index 000000000..0e935606d --- /dev/null +++ b/Library/Formula/cconv.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Cconv < Formula + homepage 'http://code.google.com/p/cconv/' + url 'http://cconv.googlecode.com/files/cconv-0.6.2.tar.gz' + sha1 '9775f91fd5600d176552a88625aaa1f64ece09c1' + + # fix link with iconv: http://code.google.com/p/cconv/issues/detail?id=18 + def patches + DATA + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + rm include/"unicode.h" + end +end + +__END__ +diff --git a/Makefile.in b/Makefile.in +index 7cdb9aa..93afc5b 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -207,7 +207,7 @@ AC_CFLAGS = -Wall @ICONV_INCLUDES@ @OS_TYPE@ + ACLOCAL_AMFLAGS = -I m4 + cconv_SOURCES = cconv.c main.c unicode.c + cconv_CFLAGS = ${AC_CFLAGS} +-cconv_LDFLAGS = @ICONV_LIBS@ ++cconv_LDFLAGS = @ICONV_LIBS@ -liconv + lib_LTLIBRARIES = libcconv.la + libcconv_la_SOURCES = cconv.c unicode.c + libcconv_la_CFLAGS = -Wall @ICONV_INCLUDES@ @OS_TYPE@ |
