aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-12 10:39:20 +0100
committerMike McQuaid2015-01-12 15:22:15 +0000
commit67c51a60230acf4e4759b977dcef1900e9b2880d (patch)
treecdf6430c56f8a143dbcc1f00891fc514e06c5e63 /Library/Formula
parent0994c0b6914e6f033f0119d5263e76dce395f9c2 (diff)
downloadhomebrew-67c51a60230acf4e4759b977dcef1900e9b2880d.tar.bz2
tth 4.06
Closes #35772. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tth.rb21
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/tth.rb b/Library/Formula/tth.rb
index 9ebfa1f98..bfe668219 100644
--- a/Library/Formula/tth.rb
+++ b/Library/Formula/tth.rb
@@ -1,14 +1,17 @@
-require 'formula'
-
class Tth < Formula
- homepage 'http://hutchinson.belmont.ma.us/tth/'
- url 'http://hutchinson.belmont.ma.us/tth/tth-noncom/tth_C.tgz'
- sha1 'bc571e5916b979c1dd8e3377249db66ceee28318'
- version '4.05'
+ homepage "http://hutchinson.belmont.ma.us/tth/"
+ # upstream has been asked to provide versioned links (Jan 12, 2015)
+ url "http://hutchinson.belmont.ma.us/tth/tth-noncom/tth_C.tgz"
+ sha1 "27b44970d93f1e1964c92ffa0fa964e6045bae37"
+ version "4.06"
def install
- system "#{ENV.cc} -o tth tth.c"
- bin.install %w(tth latex2gif ps2gif ps2png)
- man1.install 'tth.1'
+ system ENV.cc, "-o", "tth", "tth.c"
+ bin.install %w[tth latex2gif ps2gif ps2png]
+ man1.install "tth.1"
+ end
+
+ test do
+ assert_match(/version #{version}/, pipe_output("#{bin}/tth", ""))
end
end