homebrew-core/Formula/opencc.rb
BYVoid 5ed2062639 Update opencc to version 0.4.2
Closes Homebrew/homebrew#19219.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-16 01:15:01 -05:00

17 lines
399 B
Ruby

require 'formula'
class Opencc < Formula
homepage 'https://github.com/BYVoid/OpenCC'
url 'http://opencc.googlecode.com/files/opencc-0.4.2.tar.gz'
sha1 '1e4216e5fe21b16836063f23d0341cb54dbce97c'
depends_on 'cmake' => :build
def install
args = std_cmake_args
args << '-DENABLE_GETTEXT:BOOL=OFF'
system 'cmake', '.', *args
system 'make'
system 'make install'
end
end