aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorVlad Shablinsky2015-03-13 11:51:20 +0300
committerBrett Koonce2015-03-14 19:29:40 -0700
commitc36b445c1c08999eb42c456ae8db4c8f9e86302a (patch)
tree2f91051dace483e777b157fea848e7a376082451 /Library/Formula
parent1c59db4b7ae20df8a83a8c939a24d247a58dce1a (diff)
downloadhomebrew-c36b445c1c08999eb42c456ae8db4c8f9e86302a.tar.bz2
chktex: sha256, system make install, add test do
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chktex.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/Library/Formula/chktex.rb b/Library/Formula/chktex.rb
index 6e03fd9d3..11d8f3eb7 100644
--- a/Library/Formula/chktex.rb
+++ b/Library/Formula/chktex.rb
@@ -1,14 +1,21 @@
-require 'formula'
-
class Chktex < Formula
- homepage 'http://www.nongnu.org/chktex/'
- url 'http://download.savannah.gnu.org/releases/chktex/chktex-1.7.2.tar.gz'
- sha1 '85d9e9fbf3e89104966bd725f156c826d0b44dd9'
+ 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"
+ 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