New Formula: opencc

opencc is a library for conversion between Traditional Chinese and Simplified
Chinese.

Closes Homebrew/homebrew#7476.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
BYVoid 2011-09-07 20:40:18 +08:00 committed by Charlie Sharpsteen
parent d64ab46271
commit 519b2b1649

17
Formula/opencc.rb Normal file
View file

@ -0,0 +1,17 @@
require 'formula'
class Opencc < Formula
url 'http://opencc.googlecode.com/files/opencc-0.2.0.tar.gz'
homepage 'http://code.google.com/p/opencc/'
md5 'fc5915f43f7bd30f0f30ccdc4ad3a7f1'
depends_on 'cmake'
def install
args = std_cmake_parameters.split
args << '-DENABLE_GETTEXT:BOOL=OFF'
system 'cmake', '.', *args
system 'make'
system 'make install'
end
end