homebrew-core/Formula/html-xml-utils.rb

27 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class HtmlXmlUtils < Formula
desc "Tools for manipulating HTML and XML files"
2015-10-13 23:39:41 +00:00
homepage "https://www.w3.org/Tools/HTML-XML-utils/"
url "https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-6.9.tar.gz"
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/h/html-xml-utils/html-xml-utils_6.9.orig.tar.gz"
sha256 "9cf401dc84ca01752adf1f2d9862c4f227bb089504ed9d03d7fd40603e87fab2"
2015-01-02 06:49:24 +00:00
bottle do
2015-10-14 07:53:05 +00:00
cellar :any_skip_relocation
2015-11-29 23:45:44 +00:00
sha256 "8367bc9df98ea4d766c07d003117a086e37a1f73eab4cc5b9d28704f2371b582" => :el_capitan
sha256 "78dc134d1e22619091b8de99760a575c93f3bbfe1a243955c674072351297a11" => :yosemite
sha256 "5a5de2f177a22f1d2272223f5b707a1ae6b2246cdc37094444a1bb996fe60728" => :mavericks
2015-01-02 06:49:24 +00:00
end
def install
ENV.append "CFLAGS", "-std=gnu89"
2013-11-07 19:05:23 +00:00
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
ENV.j1 # install is not thread-safe
system "make", "install"
end
test do
assert_equal "&#20320;&#22909;", pipe_output("#{bin}/xml2asc", "你好")
end
end