2011-11-29 15:31:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Uchardet < Formula
|
|
|
|
homepage 'http://code.google.com/p/uchardet/'
|
2013-01-28 03:01:34 +00:00
|
|
|
url 'http://uchardet.googlecode.com/files/uchardet-0.0.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c81264cca67f3e7c46e284288f8cab7a34b3f386'
|
2011-11-29 15:31:22 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args
|
2011-11-29 15:31:22 +00:00
|
|
|
args << "-DCMAKE_INSTALL_NAME_DIR=#{lib}"
|
|
|
|
system "cmake", '.', *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-05 21:45:16 +00:00
|
|
|
system "#{bin}/uchardet", __FILE__
|
2011-11-29 15:31:22 +00:00
|
|
|
end
|
|
|
|
end
|