--- /dev/null
+--- a/Po4aBuilder.pm
++++ b/Po4aBuilder.pm
+@@ -233,7 +233,6 @@
+ }
+ $parser->parse_from_file ($file, $out);
+
+- system("gzip -9 -f $out") and die;
+ unlink "$file" || die;
+ }
+
+@@ -245,7 +244,6 @@
+ if ($file =~ m,(.*/man(.))/([^/]*)\.xml$,) {
+ my ($outdir, $section, $outfile) = ($1, $2, $3);
+ system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;
+- system ("gzip -9 -f $outdir/$outfile.$section") and die;
+ }
+ unlink "$file" || die;
+ }
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PATCHES=(
# Fix bad escaping of '.' in @INC modification
- "${FILESDIR}/${PN}-0.45-614122-no-dot-inc.patch"
+ "${FILESDIR}"/${PN}-0.45-614122-no-dot-inc.patch
+ "${FILESDIR}"/${PN}-man.patch
)
+
src_prepare() {
# Check against locale files in ${S}/pod/bin for mismatches
# with languages listed in PLOCALES
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
virtual/tex-base
)"
+PATCHES=( "${FILESDIR}"/${PN}-man.patch )
+
PERL_RM_FILES=(
t/09-html.t
)
DESCRIPTION="Tools to ease the translation of documentation"
HOMEPAGE="https://po4a.org/"
-SRC_URI="https://github.com/mquinson/po4a/releases/download/v${PV}/${P}.tar.gz"
+SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
virtual/tex-base
)"
+PATCHES=( "${FILESDIR}"/${PN}-man.patch )
+
PERL_RM_FILES=(
t/09-html.t
)
perl-module_src_prepare
}
-
-src_install() {
- perl-module_src_install
- find "${ED%/}/usr/share/man" -name '*.gz' -exec gzip -d '{}' +
-}