2011-03-10 05:11:03 +00:00
|
|
|
class Man2html < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert nroff man pages to HTML"
|
2015-11-07 18:52:26 +00:00
|
|
|
homepage "https://savannah.nongnu.org/projects/man2html/"
|
2015-04-13 21:13:17 +00:00
|
|
|
url "http://dcssrv1.oit.uci.edu/indiv/ehood/tar/man2html3.0.1.tar.gz"
|
2015-07-07 22:40:26 +00:00
|
|
|
mirror "https://distfiles.macports.org/man2html/man2html3.0.1.tar.gz"
|
2015-04-13 21:13:17 +00:00
|
|
|
sha256 "a3dd7fdd80785c14c2f5fa54a59bf93ca5f86f026612f68770a0507a3d4e5a29"
|
2010-04-29 14:33:43 +00:00
|
|
|
|
2015-07-07 22:53:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "2e3cc12c0e7bc0ae5b194f397874015df1fe6b8a8ab52c6972e17ad992732463" => :yosemite
|
|
|
|
sha256 "7ebaf5a969df65809220222b69414a51ed06b90601a28fc2ad140955e17febe0" => :mavericks
|
|
|
|
sha256 "82efff57b082ea9f817287e96d185bf15f351cfb0d4a7c3837f89bb5e14ce30c" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2010-04-29 14:33:43 +00:00
|
|
|
def install
|
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
system "/usr/bin/perl", "install.me", "-batch",
|
2010-04-07 05:58:35 +00:00
|
|
|
"-binpath", bin,
|
|
|
|
"-manpath", man
|
2010-04-29 14:33:43 +00:00
|
|
|
end
|
2015-04-13 21:13:17 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
pipe_output("#{bin}/man2html", (man1/"man2html.1").read, 0)
|
|
|
|
end
|
2010-04-29 14:33:43 +00:00
|
|
|
end
|