2012-04-05 13:22:42 +00:00
|
|
|
class Bsdconv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Charset/encoding converter library"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/buganini/bsdconv"
|
2016-10-14 09:13:13 +00:00
|
|
|
url "https://github.com/buganini/bsdconv/archive/11.5.tar.gz"
|
|
|
|
sha256 "20137c6937a5785467296e12b18b1b9dff55f021bae3f3eb3eb4fa5826689692"
|
2015-08-03 12:55:31 +00:00
|
|
|
head "https://github.com/buganini/bsdconv.git"
|
2012-04-05 13:22:42 +00:00
|
|
|
|
2016-04-09 12:03:04 +00:00
|
|
|
bottle do
|
2016-10-14 09:21:11 +00:00
|
|
|
sha256 "9afd5dd285b98bf656bbd0e29fa3594128a312e525e079e4348b1a706e16b16a" => :sierra
|
|
|
|
sha256 "565a934e96be6ef7726d1c03dbd6eec63ac5ad82678192b544cfe2bff706b1b7" => :el_capitan
|
|
|
|
sha256 "ccb11937d94df29b9434925b9416291f9d927c2e4669fb39cad96c47912662e5" => :yosemite
|
2016-04-09 12:03:04 +00:00
|
|
|
end
|
|
|
|
|
2012-04-05 13:22:42 +00:00
|
|
|
def install
|
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
2013-03-25 04:39:48 +00:00
|
|
|
test do
|
2016-07-06 09:08:56 +00:00
|
|
|
output = pipe_output("#{bin}/bsdconv BIG5:UTF-8", "\263\134\273\134")
|
|
|
|
output.force_encoding("UTF-8") if output.respond_to?(:force_encoding)
|
|
|
|
assert_equal "許蓋", output
|
2012-04-05 13:22:42 +00:00
|
|
|
end
|
|
|
|
end
|