2011-03-10 05:11:03 +00:00
|
|
|
class Enca < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Charset analyzer and converter"
|
2014-08-16 22:23:06 +00:00
|
|
|
homepage "http://cihar.com/software/enca/"
|
2014-12-02 07:24:17 +00:00
|
|
|
url "http://dl.cihar.com/enca/enca-1.16.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "de63ce06b373964ee5fbb3fea8286876de03ee095b1a2e3b7d28a940a13aff6f"
|
2014-08-16 22:23:06 +00:00
|
|
|
head "https://github.com/nijel/enca.git"
|
2011-01-14 17:04:38 +00:00
|
|
|
|
2014-08-17 02:15:28 +00:00
|
|
|
bottle do
|
2014-12-02 07:41:37 +00:00
|
|
|
sha1 "d5714f14f7075feb1a74f5975709cab64981d8ea" => :yosemite
|
|
|
|
sha1 "7e1c1698456b4aecc16f2f1c6f4dbdf48d0e44b0" => :mavericks
|
|
|
|
sha1 "a71d75fa0a058b3eb57cf2885cfe57cabc842d6e" => :mountain_lion
|
2014-08-17 02:15:28 +00:00
|
|
|
end
|
|
|
|
|
2011-01-14 17:04:38 +00:00
|
|
|
def install
|
2012-02-26 02:45:51 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-01-14 17:04:38 +00:00
|
|
|
"--prefix=#{prefix}"
|
2014-08-16 22:23:06 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
enca = "#{bin}/enca --language=none"
|
|
|
|
assert_match /ASCII/, `#{enca} <<< 'Testing...'`
|
|
|
|
assert_match /UCS-2/, `#{enca} --convert-to=UTF-16 <<< 'Testing...' | #{enca}`
|
2011-01-14 17:04:38 +00:00
|
|
|
end
|
|
|
|
end
|