freebsd-ports/textproc/po4a/files/patch-Po4aBuilder.pm
Renato Botelho 61d9c86a25 Fix installation when PREFIX != /usr/local
Submitted by:	John Hein <john.hein@microsemi.com>
Obtained from:	https://alioth.debian.org/tracker/index.php?func=detail&aid=315040
2015-04-06 17:04:26 +00:00

18 lines
698 B
Perl

--- Po4aBuilder.pm.orig 2013-08-21 15:11:04.000000000 -0500
+++ Po4aBuilder.pm 2015-04-06 11:57:21.938813000 -0500
@@ -132,13 +132,13 @@
require ExtUtils::Install;
# $self->depends_on('build');
- my $mandir = $self->install_sets($self->installdirs)->{'bindoc'};
+ my $mandir = $self->install_path->{'bindoc'};
$mandir =~ s,/man1$,,;
$self->install_path(man => $mandir);
$self->install_path(manl10n => $mandir);
my $localedir = $mandir;
- $localedir =~ s,/man$,/locale,;
+ $localedir =~ s,/man$,/share/locale,;
$self->install_path(po => $localedir);
ExtUtils::Install::install($self->install_map, !$self->quiet, 0, $self->{args}{uninst}||0);