aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opencc.rb
blob: fa1aa2c922eb37a5ce8e4368b6745a16b7a59562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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