aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chktex.rb
blob: 11d8f3eb794a91414b605fa517e558db12c15a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Chktex < Formula
  homepage "http://www.nongnu.org/chktex/"
  url "http://download.savannah.gnu.org/releases/chktex/chktex-1.7.2.tar.gz"
  sha256 "d7f37985e3a122990f2a29fe7cac5d1f31acb1e50035457ef7ceb07c30550158"

  depends_on :tex

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

  test do
    (testpath/"test.tex").write <<-EOS.undent
      \begin{document}
        Hello world
      \end{document}
    EOS
    system bin/"chktex", "test.tex"
  end
end