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

27 lines
784 B
Ruby
Raw Normal View History

2015-01-04 04:12:30 +00:00
# encoding: UTF-8
2011-03-10 05:11:03 +00:00
class HtmlXmlUtils < Formula
homepage "http://www.w3.org/Tools/HTML-XML-utils/"
url "http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-6.7.tar.gz"
sha1 "f67fc705802ef0b10b9bf84c5b2fa4253b260acd"
2015-01-02 06:49:24 +00:00
bottle do
cellar :any
sha1 "9d295d33bf99032e8015fb58588bf5f45b5582cf" => :yosemite
sha1 "6a9e42c19cb2f478dfa74d6a07f139f6240107e7" => :mavericks
sha1 "990b44746624e41b00dce32d1e0a7325c37a1195" => :mountain_lion
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