2014-08-16 22:23:06 +00:00
|
|
|
require "formula"
|
2011-01-14 17:04:38 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Enca < Formula
|
2014-08-16 22:23:06 +00:00
|
|
|
homepage "http://cihar.com/software/enca/"
|
|
|
|
url "http://dl.cihar.com/enca/enca-1.15.tar.gz"
|
|
|
|
sha1 "8a62202521e36d4159cbe6de64c2e7a0ec797e94"
|
|
|
|
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
|
|
|
|
sha1 "73833b5b16a9d7e0bee09a8a59d222a5a9a7079f" => :mavericks
|
|
|
|
sha1 "f8e7c4152e5b52a0e89a2ba9a7bba63758055e7a" => :mountain_lion
|
|
|
|
sha1 "068d6210c606fc464f18916e2ae0f3ed8ea8e3bf" => :lion
|
|
|
|
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
|