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:
parent
d64ab46271
commit
519b2b1649
1 changed files with 17 additions and 0 deletions
17
Formula/opencc.rb
Normal file
17
Formula/opencc.rb
Normal 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
|
Loading…
Reference in a new issue