summaryrefslogtreecommitdiff
path: root/system/po4a
diff options
context:
space:
mode:
Diffstat (limited to 'system/po4a')
-rw-r--r--system/po4a/APKBUILD20
-rw-r--r--system/po4a/disable-stats.patch22
2 files changed, 36 insertions, 6 deletions
diff --git a/system/po4a/APKBUILD b/system/po4a/APKBUILD
index ecbbc375b..aeebb2224 100644
--- a/system/po4a/APKBUILD
+++ b/system/po4a/APKBUILD
@@ -1,17 +1,24 @@
# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=po4a
-pkgver=0.56
+pkgver=0.66
pkgrel=0
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
-options="!check" # massive incompetence
+# most of t/cfg-* requires GNU extensions to gettext tools
+# t/fmt-sgml requires onsgmls(1), part of opensp
+# t/fmt-tex requires kpsewhich(1), part of TeX
+options="!check"
license="GPL-2.0-only"
-depends="perl gettext-tiny perl-pod-parser perl-sgmls perl-unicode-linebreak"
+depends="perl gettext-tiny perl-pod-parser perl-sgmls perl-unicode-linebreak
+ perl-yaml-tiny"
makedepends="docbook-xsl perl-module-build diffutils"
-subpackages="$pkgname-doc $pkgname-lang"
-source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz"
+# -lang would require Locale::gettext
+subpackages="$pkgname-doc"
+source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz
+ disable-stats.patch
+ "
build() {
perl Build.PL installdirs=vendor create_packlist=0
@@ -28,4 +35,5 @@ package() {
find ${pkgdir} -name .packlist -o -name perllocal.pod -delete
}
-sha512sums="4fc1ca5743471577d9e8bd0b80285b9dbd83b964f8e828472787a6deaf8b8388bb7f96e68afab4119c1f5488fe371d3b1fa94b101204a59228d1cc2f0878f3c1 po4a-0.56.tar.gz"
+sha512sums="f72e1267cbd6ced01ecc362c327b1634c47dff15398b48644548d28e01ba91108d5626e6d4abcfcb360697e4c0affa3228c6993653ce8f257acbbb3d7ae20fc4 po4a-0.66.tar.gz
+4877c3be93b9f6da56db75feb3c72433a14aef465401d0f39db62a1914cc69f062c03a6001f96e5fd726eadd63d0b6094835e30cfe4ce865945af4195d9ee07f disable-stats.patch"
diff --git a/system/po4a/disable-stats.patch b/system/po4a/disable-stats.patch
new file mode 100644
index 000000000..765a38520
--- /dev/null
+++ b/system/po4a/disable-stats.patch
@@ -0,0 +1,22 @@
+gettext-tiny msgfmt(1) does not support --statistics.
+
+If we try to generate statistics anyway (purely cosmetic), we receive:
+
+ po/bin (pot: 32912)
+ Unparsable content
+ Illegal division by zero at Po4aBuilder.pm line 297.
+
+This is because stdout/stderr is empty.
+
+--- po4a-0.66/Po4aBuilder.pm.old 2022-01-01 18:10:18.000000000 -0600
++++ po4a-0.66/Po4aBuilder.pm 2022-05-07 19:42:25.316006467 -0500
+@@ -15,7 +15,8 @@
+ $self->depends_on('docs');
+ $self->depends_on('distmeta'); # regenerate META.yml
+ $self->depends_on('man');
+- $self->depends_on('postats');
++ # We don't need to show stats at the end.
++ # $self->depends_on('postats');
+ }
+
+ sub make_files_writable {