aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-13 23:13:17 +0200
committerMike McQuaid2015-04-13 15:37:36 -0700
commit8640cad928b5ef864f015e54dabae7f9ae4410cf (patch)
tree813b262a47388aa0032e38e580b4724558d3bb9e /Library/Formula
parent0b7a5ea39ede28fb5a750a6661db6bbc0fb96d6c (diff)
downloadhomebrew-8640cad928b5ef864f015e54dabae7f9ae4410cf.tar.bz2
man2html: URL fixed, test added
Closes #38626. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/man2html.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/man2html.rb b/Library/Formula/man2html.rb
index b080e719c..0835fc70d 100644
--- a/Library/Formula/man2html.rb
+++ b/Library/Formula/man2html.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Man2html < Formula
- homepage 'http://www.oac.uci.edu/indiv/ehood/man2html.html'
- url 'http://www.oit.uci.edu/indiv/ehood/tar/man2html3.0.1.tar.gz'
- sha1 '18b617783ce59491db984d23d2b0c8061bff385c'
+ homepage "http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html"
+ url "http://dcssrv1.oit.uci.edu/indiv/ehood/tar/man2html3.0.1.tar.gz"
+ sha256 "a3dd7fdd80785c14c2f5fa54a59bf93ca5f86f026612f68770a0507a3d4e5a29"
def install
bin.mkpath
@@ -12,4 +10,8 @@ class Man2html < Formula
"-binpath", bin,
"-manpath", man
end
+
+ test do
+ pipe_output("#{bin}/man2html", (man1/"man2html.1").read, 0)
+ end
end