aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/uchardet.rb
blob: 50f39f66fd60f8824ee293f877f299298a47cefc (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
  url 'http://uchardet.googlecode.com/files/uchardet-0.0.1.tar.gz'
  homepage 'http://code.google.com/p/uchardet/'
  md5 '9c17f0aca38c66c95d400691a9160b1b'

  depends_on 'cmake' => :build

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

  def test
    system "uchardet", __FILE__
  end
end