2011-09-07 12:40:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Opencc < Formula
|
2011-12-06 10:44:05 +00:00
|
|
|
url 'http://opencc.googlecode.com/files/opencc-0.3.0.tar.gz'
|
2011-09-07 12:40:18 +00:00
|
|
|
homepage 'http://code.google.com/p/opencc/'
|
2011-12-06 10:44:05 +00:00
|
|
|
md5 '84462870e5d491da24bb33a5fb494911'
|
2011-09-07 12:40:18 +00:00
|
|
|
|
2011-11-30 02:54:32 +00:00
|
|
|
depends_on 'cmake' => :build
|
2011-09-07 12:40:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = std_cmake_parameters.split
|
|
|
|
args << '-DENABLE_GETTEXT:BOOL=OFF'
|
|
|
|
system 'cmake', '.', *args
|
|
|
|
system 'make'
|
|
|
|
system 'make install'
|
|
|
|
end
|
|
|
|
end
|