class HtmlXmlUtils < Formula
desc "Tools for manipulating HTML and XML files"
homepage "https://www.w3.org/Tools/HTML-XML-utils/"
url "https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-7.1.tar.gz"
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/h/html-xml-utils/html-xml-utils_7.1.orig.tar.gz"
sha256 "ec0efd2263b864bb7e0ae5c59f02c43c5d8aebd0e1c0d2bfce391e665766d56e"
bottle do
cellar :any_skip_relocation
sha256 "df82c4fbbac299f07207b286680c03a734283a1c5b7dad95ce32af2dc062419f" => :sierra
sha256 "b45407684af8cc1756bafc6a5b18d816b061bd0900517d45fc13648bd597743c" => :el_capitan
sha256 "80243f59807c769f5695322dc6a04aa1cae19818c7994068c8c5c029b60fb410" => :yosemite
end
def install
ENV.append "CFLAGS", "-std=gnu89"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
ENV.deparallelize # install is not thread-safe
system "make", "install"
end
test do
assert_equal "你好", pipe_output("#{bin}/xml2asc", "你好")
end
end