homebrew-core/Formula/uchardet.rb
2015-12-14 14:02:28 +01:00

26 lines
805 B
Ruby

class Uchardet < Formula
desc "Encoding detector library"
homepage "https://github.com/BYVoid/uchardet"
url "https://github.com/BYVoid/uchardet/archive/v0.0.5.tar.gz"
sha256 "7c5569c8ee1a129959347f5340655897e6a8f81ec3344de0012a243f868eabd1"
bottle do
cellar :any
sha256 "927127881787a7fcca21226eb1072f95467e82d452850fe87510ca9d67196ef0" => :el_capitan
sha256 "69444742bc7dd30b001febea95b52943b39037241622e19e331aa97af17d3d5c" => :yosemite
sha256 "a04a384e25bb191d827ef07694a0ed27636c2e1cc99162dd7efd30c3cad6fb6c" => :mavericks
end
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