commit: fc7f8aa939730f85f6f3f41ccb0bfdac982b962e
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 20 13:39:33 2025 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun Jul 20 13:39:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc7f8aa9
app-text/po4a: new upstream release
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
app-text/po4a/Manifest | 1 +
app-text/po4a/files/po4a-man.patch | 18 +++++++++++++
app-text/po4a/po4a-0.74.ebuild | 55 ++++++++++++++++++++++++++++++++++++++
3 files changed, 74 insertions(+)
diff --git a/app-text/po4a/Manifest b/app-text/po4a/Manifest
index 2f0a93a55f45..408e4a5fe326 100644
--- a/app-text/po4a/Manifest
+++ b/app-text/po4a/Manifest
@@ -1 +1,2 @@
DIST po4a-0.73.tar.gz 5117198 BLAKE2B
3072c3a55751610e565b71a754d79b20529d8d6f1cfd2e1c691b6de77c3a13b8a5f1c3306be4574627a0078b27f32fe38864faca5c6c03da6a92049387476f72
SHA512
5860af1da2a0ab1875a994b09ae2da481c12a6777655610e8c8ded4a6132048a33aeea10eaa756a73af1a7bf1e3e65f7ab5ded9d799904ae3240c6ec3b0a31d2
+DIST po4a-0.74.tar.gz 5907018 BLAKE2B
0b349840faad2625854738db980ae3586a8a7758be956cd19e5ff1966594c1546e0f407e5184bd90633968f97e525a45d61bd0bef94f93c43a531b19be343389
SHA512
2156b95a62788694b4c47dc651f7a0571b2e15159d6d8bcee0c6b0538aecd5b81012ae76e15ef333a7662f6b1e59b717f8bbe8137126042ae2cfe614db5b6d66
diff --git a/app-text/po4a/files/po4a-man.patch
b/app-text/po4a/files/po4a-man.patch
new file mode 100644
index 000000000000..22444c1681b9
--- /dev/null
+++ b/app-text/po4a/files/po4a-man.patch
@@ -0,0 +1,18 @@
+--- a/Po4aBuilder.pm
++++ b/Po4aBuilder.pm
+@@ -243,7 +243,6 @@
+ }
+ $parser->parse_from_file( $file, $out );
+
+- system("gzip", "-9", "-n", "-f", $out) and die;
+ unlink "$file" or die;
+ }
+
+@@ -275,7 +274,6 @@
+ print "Convert $outdir/$outfile.$section (online
docbook.xsl file). ";
+ system("xsltproc", "-o", "$outdir/$outfile.$section",
"--nonet", $docbook_xsl_url, $file) and die;
+ }
+- system("gzip", "-9", "-n", "-f", "$outdir/$outfile.$section")
and die;
+ }
+ unlink "$file" or die;
+ }
diff --git a/app-text/po4a/po4a-0.74.ebuild b/app-text/po4a/po4a-0.74.ebuild
new file mode 100644
index 000000000000..22daa6d86014
--- /dev/null
+++ b/app-text/po4a/po4a-0.74.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+PLOCALES="ace af ar ca cs da de eo es et eu fr hr hu id it ja ka kn ko nb nl
pl pt pt_BR ro ru sl sr sr_Cyrl sv ta uk vi zh_Hans zh_Hant"
+
+inherit perl-module plocale
+
+DESCRIPTION="Tools to ease the translation of documentation"
+HOMEPAGE="https://po4a.org/"
+SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos
~x64-macos ~x64-solaris"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="app-text/opensp
+ dev-libs/libxslt
+ dev-perl/Locale-gettext
+ dev-perl/Pod-Parser
+ dev-perl/SGMLSpm
+ dev-perl/Syntax-Keyword-Try
+ dev-perl/TermReadKey
+ dev-perl/Text-WrapI18N
+ dev-perl/Unicode-LineBreak
+ dev-perl/YAML-Tiny
+ sys-devel/gettext
+ virtual/perl-Pod-Simple"
+DEPEND="${RDEPEND}"
+BDEPEND="app-text/docbook-xml-dtd:4.1.2
+ app-text/docbook-xsl-stylesheets
+ dev-perl/Module-Build
+ sys-devel/gettext
+ test? (
+ app-text/docbook-sgml-dtd:4.1
+ dev-perl/Test-Pod
+ virtual/latex-base
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-man.patch )
+
+DIST_TEST="do"
+
+src_prepare() {
+ plocale_find_changes "${S}/po/bin" '' '.po'
+
+ rm_locale() {
+ PERL_RM_FILES+=( po/{bin,pod}/${1}.po )
+ }
+ plocale_for_each_disabled_locale rm_locale
+
+ perl-module_src_prepare
+}