diff options
| author | Baptiste Fontaine | 2015-01-12 10:39:20 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-12 15:22:15 +0000 |
| commit | 67c51a60230acf4e4759b977dcef1900e9b2880d (patch) | |
| tree | cdf6430c56f8a143dbcc1f00891fc514e06c5e63 /Library/Formula | |
| parent | 0994c0b6914e6f033f0119d5263e76dce395f9c2 (diff) | |
| download | homebrew-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.rb | 21 |
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 |
