app-text/po4a: new upstream release

Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2025-07-20 22:39:33 +09:00
parent e78a02c51d
commit fc7f8aa939
3 changed files with 74 additions and 0 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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
}