man2html: URL fixed, test added

Closes Homebrew/homebrew#38626.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-04-13 23:13:17 +02:00 committed by Mike McQuaid
parent 9450375afd
commit ccf26205c8

View file

@ -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