aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xml-coreutils.rb
blob: cf688ec37dd2e214a9e98f0cbf991d0aa6b15bbd (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
class XmlCoreutils < Formula
  homepage "http://www.lbreyer.com/xml-coreutils.html"
  url "http://www.lbreyer.com/gpl/xml-coreutils-0.8.1.tar.gz"
  sha1 "fd73b2a087ea1c630571070b1ab4ea3b40138a46"

  bottle do
    sha1 "00c4b58c3d0f45bf14519baea85a0ed0045c0bda" => :yosemite
    sha1 "aaf22770ac1eea29e10da913ef6b2d0b01063a9a" => :mavericks
    sha1 "b8f7c130dee98bd6d60d52bd4bff95b0eb13b981" => :mountain_lion
  end

  depends_on "s-lang"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    (testpath/"test.xml").write <<-EOS.undent
      <hello>world!</hello>
    EOS
    assert_match /0\s+1\s+1/, shell_output("#{bin}/xml-wc test.xml")
  end
end