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, 01 Aug 2020 12:59:57
Message-Id: 1596286763.6ac86d3acbb30e755926659eb51cefd84c7a7911.hattya@gentoo
1 commit: 6ac86d3acbb30e755926659eb51cefd84c7a7911
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 12:59:23 2020 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 12:59:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ac86d3a
7
8 app-text/po4a: new upstream release
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
12
13 app-text/po4a/Manifest | 1 +
14 app-text/po4a/files/po4a-0.60-man.patch | 18 ++++++++++++
15 app-text/po4a/po4a-0.60.ebuild | 51 +++++++++++++++++++++++++++++++++
16 3 files changed, 70 insertions(+)
17
18 diff --git a/app-text/po4a/Manifest b/app-text/po4a/Manifest
19 index 43a5e932869..f5e248b0e6e 100644
20 --- a/app-text/po4a/Manifest
21 +++ b/app-text/po4a/Manifest
22 @@ -1,2 +1,3 @@
23 DIST po4a-0.57.tar.gz 3079550 BLAKE2B 54b1d3263aa0ebd90eec61d735c3422efb5f67b2d88f91a87a6893bcdb7f06131aedadeb3577d221cf75ba07f8001f6e23409375756afec8357e26e8f0f0a1c2 SHA512 7ac2e614c126b049feeb8edbafb71a875cee78fb85d8cd74f3bf5b555cc8b2d19d5e4606b732e714e937c34e178729d73edfe559de594c5ffe811b5162b27d81
24 +DIST po4a-0.60.tar.gz 3799018 BLAKE2B cecc260af82318fa4dfeab7ef81a29256f6531d8d97afe379d0e3291197f5b9bd0a4379697f23186de0a70ff3476cedae98bedd19bf7cddf59e9503ffbc90202 SHA512 b1e32169221d6aaf49fa0e6a42e45a858c8608a62470e5d5b769da985e4d03e09a220384400fe36f740447770331f7b8b821f00dc9ce68d3c7b00178c146c6a9
25 DIST po4a-v0.59.1.tar.gz 3624434 BLAKE2B 9837a7317eecd3db540bc7c23b3d26a9110f00d9c441b1bf1d61af80bae1fe0952f875425f14d66a939456f3a90e9ea74c189d94da7471c7c9a4d0b15f3875ce SHA512 904cb5817586fef19de55e76f3a33c264f9864b5c720b727a75e78a3b690e1ecd7b10603304a762d07b340320143b83b686c9918b9fe95499ceb55482950a4d4
26
27 diff --git a/app-text/po4a/files/po4a-0.60-man.patch b/app-text/po4a/files/po4a-0.60-man.patch
28 new file mode 100644
29 index 00000000000..40927dbda81
30 --- /dev/null
31 +++ b/app-text/po4a/files/po4a-0.60-man.patch
32 @@ -0,0 +1,18 @@
33 +--- a/Po4aBuilder.pm
34 ++++ b/Po4aBuilder.pm
35 +@@ -232,7 +232,6 @@
36 + }
37 + $parser->parse_from_file ($file, $out);
38 +
39 +- system("gzip -9 -f $out") and die;
40 + unlink "$file" || die;
41 + }
42 +
43 +@@ -250,7 +249,6 @@
44 + print "Convert $outdir/$outfile.$section (online docbook.xsl file). ";
45 + system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;
46 + }
47 +- system ("gzip -9 -f $outdir/$outfile.$section") and die;
48 + }
49 + unlink "$file" || die;
50 + }
51
52 diff --git a/app-text/po4a/po4a-0.60.ebuild b/app-text/po4a/po4a-0.60.ebuild
53 new file mode 100644
54 index 00000000000..8807618f22d
55 --- /dev/null
56 +++ b/app-text/po4a/po4a-0.60.ebuild
57 @@ -0,0 +1,51 @@
58 +# Copyright 1999-2020 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI="7"
62 +PLOCALES="af ar ca cs da de eo es et eu fr hr hu id it ja kn ko nb nl pl pt pt_BR ru sl sr_Cyrl sv uk vi zh_CN zh_HK"
63 +
64 +inherit l10n perl-module
65 +
66 +DESCRIPTION="Tools to ease the translation of documentation"
67 +HOMEPAGE="https://po4a.org/"
68 +SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
69 +
70 +LICENSE="GPL-2+"
71 +SLOT="0"
72 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
73 +IUSE="test"
74 +RESTRICT="!test? ( test )"
75 +
76 +RDEPEND="app-text/opensp
77 + dev-libs/libxslt
78 + dev-perl/Locale-gettext
79 + dev-perl/SGMLSpm
80 + dev-perl/TermReadKey
81 + dev-perl/Text-WrapI18N
82 + dev-perl/Unicode-LineBreak
83 + dev-perl/YAML-Tiny
84 + sys-devel/gettext"
85 +DEPEND="${RDEPEND}
86 + app-text/docbook-xml-dtd:4.1.2
87 + app-text/docbook-xsl-stylesheets
88 + dev-perl/Module-Build
89 + test? (
90 + app-text/docbook-sgml-dtd:4.1
91 + dev-perl/Test-Pod
92 + virtual/latex-base
93 + )"
94 +
95 +PATCHES=( "${FILESDIR}"/${P}-man.patch )
96 +
97 +DIST_TEST="do"
98 +
99 +src_prepare() {
100 + l10n_find_plocales_changes "${S}/po/bin" '' '.po'
101 +
102 + rm_locale() {
103 + PERL_RM_FILES+=( po/{bin,pod}/${1}.po )
104 + }
105 + l10n_for_each_disabled_locale_do rm_locale
106 +
107 + perl-module_src_prepare
108 +}