2011-09-07 12:40:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Opencc < Formula
|
|
|
|
homepage 'http://code.google.com/p/opencc/'
|
2013-01-29 04:58:58 +00:00
|
|
|
url 'http://opencc.googlecode.com/files/opencc-0.3.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '76f1750751b7fe15d25d66f0378814434fad1e70'
|
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
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args
|
2011-09-07 12:40:18 +00:00
|
|
|
args << '-DENABLE_GETTEXT:BOOL=OFF'
|
|
|
|
system 'cmake', '.', *args
|
|
|
|
system 'make'
|
|
|
|
system 'make install'
|
|
|
|
end
|
|
|
|
end
|