fd6caa052e
uchardet is a C language binding of the original C++ implementation of the universal charset detection library by Mozilla. uchardet is an encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text. Closes Homebrew/homebrew#8868. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
448 B
Ruby
20 lines
448 B
Ruby
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
|