homebrew-core/Formula/opencc.rb
BYVoid 519b2b1649 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>
2011-09-23 20:44:35 -07:00

17 lines
392 B
Ruby

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