Skip to content

Commit

Permalink
pod2man 4.03
Browse files Browse the repository at this point in the history
This is needed to build documentation for some software on older versions
of OS X. For example, wget needs it on 10.6 and below.

Fixes Homebrew/legacy-homebrew#46566.
  • Loading branch information
mistydemeo committed Dec 28, 2015
1 parent 3246567 commit d24f9ff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Formula/pod2man.rb
@@ -0,0 +1,22 @@
class Pod2man < Formula
desc "perl documentation generator"
homepage "http://www.eyrie.org/~eagle/software/podlators/"
url "http://archives.eyrie.org/software/perl/podlators-4.03.tar.xz"
sha256 "4694326b35f569dafc4226398b25d5c82c86ed485039effdeb4f14c2ae5b7032"

keg_only :provided_by_osx

def install
system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}"
system "make", "install"

# makefile installs manpages into a root man directory
share.install prefix/"man"
end

test do
(testpath/"test.pod").write "=head2 Test heading\n"
manpage = shell_output("#{bin}/pod2man #{testpath}/test.pod")
assert_match '.SS "Test heading"', manpage
end
end

0 comments on commit d24f9ff

Please sign in to comment.