aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-Pod-Perldoc
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-04-27 22:32:09 +0800
committermat <mat@FreeBSD.org>2015-04-27 22:32:09 +0800
commited87bc69ca7e1ab7b6c7635b1c47d6f4d7d28a51 (patch)
tree50a25394a869ff9cea38172102e9d7afd8ad8367 /textproc/p5-Pod-Perldoc
parent6cf18ac4d0cb3f9d866cbe60bd6104cd442258ce (diff)
downloadfreebsd-ports-gnome-ed87bc69ca7e1ab7b6c7635b1c47d6f4d7d28a51.tar.gz
freebsd-ports-gnome-ed87bc69ca7e1ab7b6c7635b1c47d6f4d7d28a51.tar.zst
freebsd-ports-gnome-ed87bc69ca7e1ab7b6c7635b1c47d6f4d7d28a51.zip
Have perldoc use mandoc before *roff. Also, fix perldoc when using more as a
pager. Differential Revision: https://reviews.freebsd.org/D2373 With hat: perl@ Sponsored by: Absolight
Diffstat (limited to 'textproc/p5-Pod-Perldoc')
-rw-r--r--textproc/p5-Pod-Perldoc/Makefile1
-rw-r--r--textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc.pm10
-rw-r--r--textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_BaseTo.pm10
-rw-r--r--textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_ToMan.pm11
4 files changed, 32 insertions, 0 deletions
diff --git a/textproc/p5-Pod-Perldoc/Makefile b/textproc/p5-Pod-Perldoc/Makefile
index 6771391cf0e8..fd693e68fa52 100644
--- a/textproc/p5-Pod-Perldoc/Makefile
+++ b/textproc/p5-Pod-Perldoc/Makefile
@@ -3,6 +3,7 @@
PORTNAME= Pod-Perldoc
PORTVERSION= 3.25
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
diff --git a/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc.pm b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc.pm
new file mode 100644
index 000000000000..397613e5ba17
--- /dev/null
+++ b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc.pm
@@ -0,0 +1,10 @@
+--- lib/Pod/Perldoc.pm.orig 2015-02-12 03:07:39 UTC
++++ lib/Pod/Perldoc.pm
+@@ -1920,6 +1920,7 @@ sub page { # apply a pager to the outpu
+ # fix visible escape codes in ToTerm output
+ # https://bugs.debian.org/758689
+ local $ENV{LESS} = defined $ENV{LESS} ? "$ENV{LESS} -R" : "-R";
++ local $ENV{MORE} = defined $ENV{MORE} ? "$ENV{MORE} -R" : "-R";
+ last if system("$pager \"$output\"") == 0;
+ }
+ }
diff --git a/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_BaseTo.pm b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_BaseTo.pm
new file mode 100644
index 000000000000..40c58d506b16
--- /dev/null
+++ b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_BaseTo.pm
@@ -0,0 +1,10 @@
+--- lib/Pod/Perldoc/BaseTo.pm.orig 2015-02-12 03:07:51 UTC
++++ lib/Pod/Perldoc/BaseTo.pm
+@@ -33,6 +33,7 @@ BEGIN {
+ *is_linux = $^O eq 'linux' ? \&TRUE : \&FALSE unless defined &is_linux;
+ *is_hpux = $^O =~ m/hpux/ ? \&TRUE : \&FALSE unless defined &is_hpux;
+ *is_openbsd = $^O =~ m/openbsd/ ? \&TRUE : \&FALSE unless defined &is_openbsd;
++ *is_freebsd = $^O =~ m/freebsd/ ? \&TRUE : \&FALSE unless defined &is_freebsd;
+ *is_bitrig = $^O =~ m/bitrig/ ? \&TRUE : \&FALSE unless defined &is_bitrig;
+ }
+
diff --git a/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_ToMan.pm b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_ToMan.pm
new file mode 100644
index 000000000000..759005fec40b
--- /dev/null
+++ b/textproc/p5-Pod-Perldoc/files/patch-lib_Pod_Perldoc_ToMan.pm
@@ -0,0 +1,11 @@
+--- lib/Pod/Perldoc/ToMan.pm.orig 2015-02-12 03:08:10 UTC
++++ lib/Pod/Perldoc/ToMan.pm
+@@ -63,7 +63,7 @@ sub init {
+ sub _roffer_candidates {
+ my( $self ) = @_;
+
+- if( $self->is_openbsd || $self->is_bitrig ) { qw( mandoc groff nroff ) }
++ if( $self->is_openbsd || $self->is_freebsd || $self->is_bitrig ) { qw( mandoc groff nroff ) }
+ else { qw( groff nroff mandoc ) }
+ }
+