homebrew-core/Formula/bsdconv.rb

25 lines
909 B
Ruby
Raw Normal View History

class Bsdconv < Formula
desc "Charset/encoding converter library"
homepage "https://github.com/buganini/bsdconv"
url "https://github.com/buganini/bsdconv/archive/11.5.tar.gz"
sha256 "20137c6937a5785467296e12b18b1b9dff55f021bae3f3eb3eb4fa5826689692"
head "https://github.com/buganini/bsdconv.git"
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
def install
system "make", "PREFIX=#{prefix}"
system "make", "PREFIX=#{prefix}", "install"
end
2013-03-25 04:39:48 +00:00
test do
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
end
end