27 lines
835 B
Ruby
27 lines
835 B
Ruby
# encoding: UTF-8
|
|
|
|
class HtmlXmlUtils < Formula
|
|
desc "Tools for manipulating HTML and XML files"
|
|
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"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "9d295d33bf99032e8015fb58588bf5f45b5582cf" => :yosemite
|
|
sha1 "6a9e42c19cb2f478dfa74d6a07f139f6240107e7" => :mavericks
|
|
sha1 "990b44746624e41b00dce32d1e0a7325c37a1195" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
ENV.append "CFLAGS", "-std=gnu89"
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make"
|
|
ENV.j1 # install is not thread-safe
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_equal "你好", pipe_output("#{bin}/xml2asc", "你好")
|
|
end
|
|
end
|