Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/po4a/, app-text/po4a/files/
Date: Sat, 19 Jan 2019 15:29:10
Message-Id: 1547911636.299c2af293818d6f0b8669ba8c0d6eb1be1b08b7.hattya@gentoo
1 commit: 299c2af293818d6f0b8669ba8c0d6eb1be1b08b7
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 19 15:27:16 2019 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 19 15:27:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=299c2af2
7
8 app-text/po4a: do not compress man pages
9
10 Closes: https://bugs.gentoo.org/675402
11 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 app-text/po4a/files/po4a-man.patch | 18 ++++++++++++++++++
15 app-text/po4a/po4a-0.47-r1.ebuild | 6 ++++--
16 app-text/po4a/po4a-0.54.ebuild | 4 +++-
17 app-text/po4a/po4a-0.55.ebuild | 9 +++------
18 4 files changed, 28 insertions(+), 9 deletions(-)
19
20 diff --git a/app-text/po4a/files/po4a-man.patch b/app-text/po4a/files/po4a-man.patch
21 new file mode 100644
22 index 00000000000..6dd94aed153
23 --- /dev/null
24 +++ b/app-text/po4a/files/po4a-man.patch
25 @@ -0,0 +1,18 @@
26 +--- a/Po4aBuilder.pm
27 ++++ b/Po4aBuilder.pm
28 +@@ -233,7 +233,6 @@
29 + }
30 + $parser->parse_from_file ($file, $out);
31 +
32 +- system("gzip -9 -f $out") and die;
33 + unlink "$file" || die;
34 + }
35 +
36 +@@ -245,7 +244,6 @@
37 + if ($file =~ m,(.*/man(.))/([^/]*)\.xml$,) {
38 + my ($outdir, $section, $outfile) = ($1, $2, $3);
39 + system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;
40 +- system ("gzip -9 -f $outdir/$outfile.$section") and die;
41 + }
42 + unlink "$file" || die;
43 + }
44
45 diff --git a/app-text/po4a/po4a-0.47-r1.ebuild b/app-text/po4a/po4a-0.47-r1.ebuild
46 index 94311ba3d57..dcf757c2f2b 100644
47 --- a/app-text/po4a/po4a-0.47-r1.ebuild
48 +++ b/app-text/po4a/po4a-0.47-r1.ebuild
49 @@ -1,4 +1,4 @@
50 -# Copyright 1999-2018 Gentoo Foundation
51 +# Copyright 1999-2019 Gentoo Authors
52 # Distributed under the terms of the GNU General Public License v2
53
54 EAPI=6
55 @@ -37,8 +37,10 @@ DIST_TEST="do"
56
57 PATCHES=(
58 # Fix bad escaping of '.' in @INC modification
59 - "${FILESDIR}/${PN}-0.45-614122-no-dot-inc.patch"
60 + "${FILESDIR}"/${PN}-0.45-614122-no-dot-inc.patch
61 + "${FILESDIR}"/${PN}-man.patch
62 )
63 +
64 src_prepare() {
65 # Check against locale files in ${S}/pod/bin for mismatches
66 # with languages listed in PLOCALES
67
68 diff --git a/app-text/po4a/po4a-0.54.ebuild b/app-text/po4a/po4a-0.54.ebuild
69 index 52fdda5fc38..45fe4908e04 100644
70 --- a/app-text/po4a/po4a-0.54.ebuild
71 +++ b/app-text/po4a/po4a-0.54.ebuild
72 @@ -1,4 +1,4 @@
73 -# Copyright 1999-2018 Gentoo Foundation
74 +# Copyright 1999-2019 Gentoo Authors
75 # Distributed under the terms of the GNU General Public License v2
76
77 EAPI="6"
78 @@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
79 virtual/tex-base
80 )"
81
82 +PATCHES=( "${FILESDIR}"/${PN}-man.patch )
83 +
84 PERL_RM_FILES=(
85 t/09-html.t
86 )
87
88 diff --git a/app-text/po4a/po4a-0.55.ebuild b/app-text/po4a/po4a-0.55.ebuild
89 index 1ff6a7d4df6..45fe4908e04 100644
90 --- a/app-text/po4a/po4a-0.55.ebuild
91 +++ b/app-text/po4a/po4a-0.55.ebuild
92 @@ -8,7 +8,7 @@ inherit perl-module l10n
93
94 DESCRIPTION="Tools to ease the translation of documentation"
95 HOMEPAGE="https://po4a.org/"
96 -SRC_URI="https://github.com/mquinson/po4a/releases/download/v${PV}/${P}.tar.gz"
97 +SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
98
99 LICENSE="GPL-2"
100 SLOT="0"
101 @@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
102 virtual/tex-base
103 )"
104
105 +PATCHES=( "${FILESDIR}"/${PN}-man.patch )
106 +
107 PERL_RM_FILES=(
108 t/09-html.t
109 )
110 @@ -48,8 +50,3 @@ src_prepare() {
111
112 perl-module_src_prepare
113 }
114 -
115 -src_install() {
116 - perl-module_src_install
117 - find "${ED%/}/usr/share/man" -name '*.gz' -exec gzip -d '{}' +
118 -}