aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/man2html.rb
blob: 0835fc70d1cf0406c8e97c26d38b9aa9ea82fafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Man2html < Formula
  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
    man1.mkpath
    system "/usr/bin/perl", "install.me", "-batch",
                            "-binpath", bin,
                            "-manpath", man
  end

  test do
    pipe_output("#{bin}/man2html", (man1/"man2html.1").read, 0)
  end
end