aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/uchardet.rb
blob: 3393756e6632b3df68f1e68d89ed8dddd605193c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Uchardet < Formula
  homepage 'http://code.google.com/p/uchardet/'
  url 'https://uchardet.googlecode.com/files/uchardet-0.0.1.tar.gz'
  sha1 'c81264cca67f3e7c46e284288f8cab7a34b3f386'

  depends_on 'cmake' => :build

  def install
    args = std_cmake_args
    args << "-DCMAKE_INSTALL_NAME_DIR=#{lib}"
    system "cmake", '.', *args
    system "make install"
  end

  test do
    system "#{bin}/uchardet", __FILE__
  end
end