blob: 4f40ace98a89b568cdb465fb11b17c959c68edb2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 | # encoding: UTF-8
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"
  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
 |