summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.PL7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index c41c9f03..5cf5506d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -79,7 +79,10 @@ sub manifypods {
my $inherited = shift->SUPER::manifypods(@_);
#- TODO repartition of man pages in sections by pod2man is incorrect
#- TODO as more languages are added adapt the following quick hack
- $with_po and $inherited =~ s/\t\$/\t\$(NOECHO) \$(MKPATH) \$(INST_MAN8DIR)\/fr\n$&/;
+ if ($with_po) {
+ $inherited =~ s/(INST_MAN(\d)DIR\)\/)\bfr\b/$1..\/fr\/man$2/g;
+ $inherited =~ s/\t\$/\t\$(NOECHO) \$(MKPATH) \$(INST_MAN8DIR)\/..\/fr\/man8\n$&/;
+ }
$inherited;
}
@@ -90,6 +93,8 @@ sub postamble {
installpo:
\$(MAKE) -C po install
+ \$(NOECHO) \$(MOD_INSTALL) \\
+ \$(INST_MAN8DIR)\/..\/fr \$(DESTDIR)/usr/share/man/fr
installconfigfiles:
install -d \$(SYSCONFDIR)/urpmi