diff --git a/misc/gman/Makefile b/misc/gman/Makefile index 3a524f83076b..1dd674f8e778 100644 --- a/misc/gman/Makefile +++ b/misc/gman/Makefile @@ -8,7 +8,7 @@ PORTNAME= gman PORTVERSION= 0.9.3 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_DEBIAN} MASTER_SITE_SUBDIR= pool/main/g/gman diff --git a/misc/gman/files/patch-gman.pl b/misc/gman/files/patch-gman.pl index 765c3dcd7d7c..097cde65a26f 100644 --- a/misc/gman/files/patch-gman.pl +++ b/misc/gman/files/patch-gman.pl @@ -1,27 +1,15 @@ ---- gman.pl.orig 2011-08-25 13:06:54.517309488 -0700 -+++ gman.pl 2011-08-25 13:12:49.444936858 -0700 -@@ -1,10 +1,10 @@ - #!/usr/bin/perl -w --use strict; - - if (@ARGV != 2) { - print <<_EOF_; - Content-type: text/html - -+ -
You have to install man2html in order to use this mode in gman. -+ ++
++You have to install man2html in order to use this mode in gman. - + end_of_line die; } + +-my $page = `$man2html $path`; ++my $page = `$man $section $name | man2html $man2html_args`; + + # $page =~ s/^Content-type: text\/html\n\n// if (not run as cgi...); +